filter must be converted to list
This commit is contained in:
parent
f258e4c744
commit
569c2aa752
2
bot.py
2
bot.py
|
@ -1395,7 +1395,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 = filter(lambda x: x >= date, a)
|
||||
a = list(filter(lambda x: x >= date, a))
|
||||
db.write(array, a)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue