diff --git a/src/commands/other.py b/src/commands/other.py index cb4306d..59f717d 100644 --- a/src/commands/other.py +++ b/src/commands/other.py @@ -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() diff --git a/src/commands/watchlist.py b/src/commands/watchlist.py index 408fa8a..32ede73 100644 --- a/src/commands/watchlist.py +++ b/src/commands/watchlist.py @@ -132,7 +132,6 @@ def single(update, context): elif selected == BACK: return show_menu(update, context) elif selected == ENABLED: - print('Changing', wl[Section.Enabled.value]) wl[current][Section.Enabled.value] = not wl[current][Section.Enabled.value] save_watchlist(context, wl) return show_single(update, context)