cache-authors-fix
This commit is contained in:
parent
bd745407bf
commit
636b5446a2
|
@ -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():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user