mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Fix
This commit is contained in:
@@ -325,7 +325,7 @@ class GetRandomService(Generic[MODEL, QUERY], BaseService[MODEL, QUERY]):
|
|||||||
|
|
||||||
await cls.cache_object_ids(query, object_ids, redis)
|
await cls.cache_object_ids(query, object_ids, redis)
|
||||||
|
|
||||||
if len(object_ids):
|
if len(object_ids) == 0:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return choice(object_ids)
|
return choice(object_ids)
|
||||||
|
|||||||
Reference in New Issue
Block a user