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:
CacheStorage.authors = result
for a in result:
self.authors_by_user[a.user] = a
self.authors_by_id[a.id] = a
user_id = a.get("user")
author_id = a.get("id")
self.authors_by_user[user_id] = a
self.authors_by_id[author_id] = a
@staticmethod
async def worker():