Test all crud stuff up until now

This commit is contained in:
stijndcl 2022-07-30 16:14:32 +02:00
parent a0781a046b
commit e4e77502e8
4 changed files with 64 additions and 2 deletions

View file

@ -61,7 +61,7 @@ async def set_daily_word(database: MongoDatabase, word: str, *, forced: bool = F
"""
collection = database[TemporaryStorage.collection()]
current_word = None if forced else await get_daily_word(collection)
current_word = None if forced else await get_daily_word(database)
if current_word is not None:
return current_word