0.2.16-resolvers-revision
All checks were successful
deploy / deploy (push) Successful in 2m22s

This commit is contained in:
2023-11-28 10:53:48 +03:00
parent 3cf86d9e6e
commit 20f7c22441
15 changed files with 266 additions and 196 deletions

View File

@@ -18,12 +18,7 @@ class Following:
class FollowingManager:
lock = asyncio.Lock()
data = {
'author': [],
'topic': [],
'shout': [],
'community': []
}
data = {"author": [], "topic": [], "shout": [], "community": []}
@staticmethod
async def register(kind, uid):
@@ -40,7 +35,7 @@ class FollowingManager:
try:
async with FollowingManager.lock:
for entity in FollowingManager[kind]:
if payload.shout['created_by'] == entity.uid:
if payload.shout["created_by"] == entity.uid:
entity.queue.put_nowait(payload)
except Exception as e:
print(Exception(e))