diff --git a/src/commands/other.py b/src/commands/other.py index 59f717d..7b28051 100644 --- a/src/commands/other.py +++ b/src/commands/other.py @@ -65,7 +65,7 @@ def send_update_to_user(user: str, auto, codes=None): enabled = code_data[Section.Enabled.value] # print(code, last_run + frequency, now, last_run + frequency - now) - if auto and (last_run + frequency > now or not enabled): + if auto and (not enabled or last_run + frequency > now): continue code_data[Section.LastRun.value] = current_timestamp() diff --git a/src/commands/watchlist.py b/src/commands/watchlist.py index 32ede73..605f2b4 100644 --- a/src/commands/watchlist.py +++ b/src/commands/watchlist.py @@ -148,7 +148,7 @@ def single(update, context): def show_single_frequency(update: Update, context: CallbackContext): keyboard = [ - [InlineKeyboardButton('2 minutes', callback_data='2m'), InlineKeyboardButton( + [InlineKeyboardButton('5 minutes', callback_data='5m'), InlineKeyboardButton( '30 minutes', callback_data='30m')], [InlineKeyboardButton('hour', callback_data='1h'), InlineKeyboardButton( '4 hours', callback_data='4h')],