mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Test all crud stuff up until now
This commit is contained in:
parent
a0781a046b
commit
e4e77502e8
4 changed files with 64 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue