cache-authors-fix

This commit is contained in:
Untone 2024-01-24 12:22:05 +03:00
parent bd745407bf
commit 636b5446a2

View File

@ -93,8 +93,10 @@ class CacheStorage:
if result: if result:
CacheStorage.authors = result CacheStorage.authors = result
for a in result: for a in result:
self.authors_by_user[a.user] = a user_id = a.get("user")
self.authors_by_id[a.id] = a author_id = a.get("id")
self.authors_by_user[user_id] = a
self.authors_by_id[author_id] = a
@staticmethod @staticmethod
async def worker(): async def worker():