mirror of
https://github.com/cupcakearmy/mercatus.git
synced 2024-11-01 00:04:11 +01:00
increase frequency to min 5 minutes
This commit is contained in:
parent
3a6f90ffec
commit
2ffff5ab0f
@ -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()
|
||||
|
@ -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')],
|
||||
|
Loading…
Reference in New Issue
Block a user