Skip to content

Commit

Permalink
change how get after works and change wording
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Sep 18, 2024
1 parent 131f3b4 commit 3cc4bd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ofscraper/data/api/common/after.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

def get_after_pre_checks(model_id, api):
val = None
if forced_after is not None:
val = forced_after
if read_args.retriveArgs().after==0:
val=0
elif read_args.retriveArgs().after is not None:
val = read_args.retriveArgs().after.float_timestamp
elif not settings.auto_after_enabled():
Expand All @@ -20,8 +20,8 @@ def get_after_pre_checks(model_id, api):

def _return_val(val, api):
if val is None:
logging.getLogger("shared").info(f"precheck failed for {api} using db")
logging.getLogger("shared").info(f"precheck failed for setting after {api} using db")
return val
else:
logging.getLogger("shared").info(f"precheck success for {api} skipping db")
logging.getLogger("shared").info(f"precheck success for setting after {api} skipping db")
return val

0 comments on commit 3cc4bd0

Please sign in to comment.