Skip to content

Commit

Permalink
lint. fixes linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushanand18 authored Sep 8, 2024
1 parent 2601df8 commit a46cc06
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyobis/checklist/checklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def execute(self):
"█" * int(len(out["results"]) * 100 / out["total"]),
"." * (100 - int(len(out["results"]) * 100 / out["total"])),
len(out["results"]),
)
),
)
# now paginate until the response is null
while True:
Expand Down
6 changes: 3 additions & 3 deletions pyobis/obisutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
# export logger, and setup basic configurations
logger = logging.getLogger(__name__)
logging.basicConfig(
encoding='utf-8',
encoding="utf-8",
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S',
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
)


Expand Down
12 changes: 9 additions & 3 deletions pyobis/occurrences/occurrences.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
build_api_url,
handle_arrint,
handle_arrstr,
obis_baseurl,
logger,
obis_baseurl,
obis_GET,
)

Expand Down Expand Up @@ -122,7 +122,7 @@ def execute(self, **kwargs):
"." * (100 - int((i + 1) * 100 / size)),
i,
size,
)
),
)
res = obis_GET(
self.__url,
Expand All @@ -144,7 +144,13 @@ 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: ", "\u2588" * 100, "." * 0, size, size),
"{}[{}{}] {}/{}".format(
"Fetching: ",
"\u2588" * 100,
"." * 0,
size,
size,
),
)
res = obis_GET(
self.__url,
Expand Down

0 comments on commit a46cc06

Please sign in to comment.