Skip to content

Commit

Permalink
add more users logs
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Aug 28, 2024
1 parent 44b8256 commit 5b23e9b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ofscraper/data/models/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import ofscraper.utils.constants as constants
import ofscraper.utils.settings as settings
from ofscraper.utils.context.run_async import run
import ofscraper.utils.console as console


log = logging.getLogger("shared")

Expand Down Expand Up @@ -117,14 +119,13 @@ async def all_subs_retriver(self,refetch=True):
if len(self.all_subs_dict) > 0:
break
elif len(self.all_subs_dict) == 0:
print("No accounts found during scan")
console.get_console().print("[bold red]No accounts found during scan[/bold red]")
# give log time to process
time.sleep(constants.getattr("LOG_DISPLAY_TIMEOUT"))
if not prompts.retry_user_scan():
raise Exception("Could not find any accounts on list")



def parsed_subscriptions_helper(self,reset=False):
args = read_args.retriveArgs()
if reset is True:
Expand Down Expand Up @@ -166,7 +167,7 @@ def setfilter(self):
if not list(sorted(old_blacklist)) == list(
sorted(args.black_list)
) or not list(sorted(old_list)) == list(sorted(args.user_list)):
print("Updating Models")
console.get_console().print("Updating Models")
self.all_subs_retriver(rescan=True)
elif choice == "list":
old_args = read_args.retriveArgs()
Expand All @@ -176,7 +177,7 @@ def setfilter(self):
if not list(sorted(old_blacklist)) == list(
sorted(args.black_list)
) or not list(sorted(old_list)) == list(sorted(args.user_list)):
print("Updating Models")
console.get_console().print("Updating Models")
self.all_subs_retriver(rescan=True)
elif choice == "select":
old_args = read_args.retriveArgs()
Expand All @@ -196,8 +197,8 @@ def filterNSort(self):
if len(filterusername) != 0:

return {ele.name:self._all_subs_dict[ele.name] for ele in sort.sort_models_helper(filterusername)}
print(
f"""You have filtered the user list to zero
console.get_console().print(
f"""[bold red]You have filtered the user list to zero[/bold red]
Change the filter settings to continue
Active userlist : {settings.get_userlist() or 'no blacklist'}
Expand Down

0 comments on commit 5b23e9b

Please sign in to comment.