Skip to content

Commit

Permalink
fix some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Jan 23, 2024
1 parent 95e134a commit d45869c
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions ofscraper/commands/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def process_post_user_first():
output = []

for count, ele in enumerate(userdata):
log.info(f"Progress {count+1}/{length} model")
log.info(f"Data retrival progressing on model {count+1}/{length}")
if constants.getattr("SHOW_AVATAR") and ele.avatar:
log.warning(f"Avatar : {ele.avatar}")
if bool(areas.get_download_area()):
Expand Down Expand Up @@ -268,13 +268,14 @@ def normal_post_process():
userdata = userselector.getselected_usernames(rescan=False)
length = len(userdata)
for count, ele in enumerate(userdata):
log.warning(f"Progress {count+1}/{length} model")
log.warning(
f"Download action progressing on model {count+1}/{length} models "
)
if constants.getattr("SHOW_AVATAR") and ele.avatar:
log.warning(f"Avatar : {ele.avatar}")
if bool(areas.get_download_area()):
log.warning(
f"Getting {','.join(areas.get_download_area())} for [bold]{ele.name}[/bold]\n[bold]Subscription Active:[/bold] {ele.active}"
)
log.warning(
f"Getting {','.join(areas.get_download_area())} for [bold]{ele.name}[/bold]\n[bold]Subscription Active:[/bold] {ele.active}"
)
try:
model_id = ele.id
operations.create_tables(model_id, ele.name)
Expand Down Expand Up @@ -336,7 +337,12 @@ def process_like():
log.debug(f"Number of Active Accounts selected {length}")
with stdout.lowstdout():
for count, ele in enumerate(active):
log.info(f"Progress {count+1}/{length} model")
log.info(f"Like action progressing on model {count+1}/{length}")
if constants.getattr("SHOW_AVATAR") and ele.avatar:
log.warning(f"Avatar : {ele.avatar}")
log.warning(
f"Getting {','.join(areas.get_like_area())} for [bold]{ele.name}[/bold]\n[bold]Subscription Active:[/bold] {ele.active}"
)
model_id = ele.id
operations.create_tables(model_id, ele.name)
operations.create_backup(model_id, ele.name)
Expand Down Expand Up @@ -365,7 +371,12 @@ def process_unlike():
log.debug(f"Number of Active Accounts selected {length}")
with stdout.lowstdout():
for count, ele in enumerate(active):
log.info(f"Progress {count+1}/{length} model")
log.info(f"Unlike action progressing on model {count+1}/{length}")
if constants.getattr("SHOW_AVATAR") and ele.avatar:
log.warning(f"Avatar : {ele.avatar}")
log.warning(
f"Getting {','.join(areas.get_like_area())} for [bold]{ele.name}[/bold]\n[bold]Subscription Active:[/bold] {ele.active}"
)
model_id = profile.get_id(ele.name)
operations.create_tables(model_id, ele.name)
operations.create_backup(model_id, ele.name)
Expand Down

0 comments on commit d45869c

Please sign in to comment.