mirror of
https://github.com/cupcakearmy/mercatus.git
synced 2025-09-10 04:30:42 +00:00
check if stock is enabled in the auto update
This commit is contained in:
@@ -62,9 +62,10 @@ def send_update_to_user(user: str, auto, codes=None):
|
||||
last_run = code_data[Section.LastRun.value]
|
||||
frequency = parse(code_data[Section.Frequency.value])
|
||||
interval = parse(code_data[Section.Interval.value])
|
||||
enabled = code_data[Section.Enabled.value]
|
||||
# print(code, last_run + frequency, now, last_run + frequency - now)
|
||||
|
||||
if auto and last_run + frequency > now:
|
||||
if auto and (last_run + frequency > now or not enabled):
|
||||
continue
|
||||
|
||||
code_data[Section.LastRun.value] = current_timestamp()
|
||||
|
Reference in New Issue
Block a user