parser-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m9s

This commit is contained in:
2024-06-11 14:46:10 +03:00
parent 8708efece2
commit b2fdc9a453
3 changed files with 5 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ async def handle_topic_follower_change(topic_id: int, follower_id: int, is_inser
topic = get_with_stat(topic_query)
follower_query = select(Author).filter(Author.id == follower_id)
follower = get_with_stat(follower_query)
if isinstance(follower[0],Author) and isinstance(topic[0], Topic):
if isinstance(follower[0], Author) and isinstance(topic[0], Topic):
topic = topic[0]
follower = follower[0]
await cache_topic(topic.dict())