This commit is contained in:
Egor Guslyancev 2023-12-18 09:25:51 -03:00
parent c525c42487
commit 0ac2b90487
GPG Key ID: D7E709AA465A55F9
1 changed files with 2 additions and 1 deletions

3
bot.py
View File

@ -1329,6 +1329,7 @@ def set_timezone(message: telebot.types.Message):
def get_hours() -> tuple:
# TODO command to set range
return (8, 20)
@ -1397,7 +1398,7 @@ def stack_update(forum: int, force_reset: bool = False) -> None:
def clean_old_dates(date: dt.datetime, array: str) -> None:
"Removes dates from db's array which are older than `date`."
a = db.read(array)
a = a.filter(lambda x: x >= date, a)
a = filter(lambda x: x >= date, a)
db.write(array, a)