Skip to content

Commit

Permalink
fix: replaces white blockspace char with unicode.
Browse files Browse the repository at this point in the history
should fix failing tests on older versions
  • Loading branch information
ayushanand18 authored Sep 8, 2024
1 parent 5acfb72 commit 4ccbc78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyobis/occurrences/occurrences.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def execute(self, **kwargs):
self.__args["size"] = 10000
logger.info(
f"Fetching: "
f"[{"" * int((i - 1) * 100 / size)}"
f"[{"\u2588" * int((i - 1) * 100 / size)}"
f"{"." * (100 - int((i + 1) * 100 / size))}]"
f" {i}/{size}"
)
Expand All @@ -142,7 +142,7 @@ def execute(self, **kwargs):
# we have already fetched records as a set of 5000 records each time,
# now we need to get remaining records from the total
logger.info(
"{}[{}{}] {}/{}".format("Fetching: ", "" * 100, "." * 0, size, size),
"{}[{}{}] {}/{}".format("Fetching: ", "\u2588" * 100, "." * 0, size, size),
)
res = obis_GET(
self.__url,
Expand All @@ -154,7 +154,7 @@ def execute(self, **kwargs):
[outdf.infer_objects(), pd.DataFrame(res["results"]).infer_objects()],
ignore_index=True,
)
logger.info(f"\nFetched {size} records.")
logger.info(f"Fetched {size} records.")

if mof and self.__total_records > 0:
mofNormalized = pd.json_normalize(
Expand Down

0 comments on commit 4ccbc78

Please sign in to comment.