This commit is contained in:
Untone 2024-10-24 00:01:09 +03:00
parent d9644f901e
commit 9ac533ee73
2 changed files with 3 additions and 3 deletions

4
cache/precache.py vendored
View File

@ -89,10 +89,10 @@ async def precache_data():
flattened = []
for field, val in value.items():
flattened.extend([field, val])
await redis.execute("HSET", key, *flattened)
logger.info(f"redis hash '{key}' was restored")
with local_session() as session:
# topics
q = select(Topic).where(Topic.community == 1)

View File

@ -314,7 +314,7 @@ def apply_filters(q, filters, author_id=None):
@query.field("get_shout")
async def get_shout(_, info, slug = "", shout_id = 0):
async def get_shout(_, _info, slug="", shout_id=0):
"""
Получение публикации по slug.