fmt
This commit is contained in:
parent
d9644f901e
commit
9ac533ee73
4
cache/precache.py
vendored
4
cache/precache.py
vendored
|
@ -89,10 +89,10 @@ async def precache_data():
|
||||||
flattened = []
|
flattened = []
|
||||||
for field, val in value.items():
|
for field, val in value.items():
|
||||||
flattened.extend([field, val])
|
flattened.extend([field, val])
|
||||||
|
|
||||||
await redis.execute("HSET", key, *flattened)
|
await redis.execute("HSET", key, *flattened)
|
||||||
logger.info(f"redis hash '{key}' was restored")
|
logger.info(f"redis hash '{key}' was restored")
|
||||||
|
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
# topics
|
# topics
|
||||||
q = select(Topic).where(Topic.community == 1)
|
q = select(Topic).where(Topic.community == 1)
|
||||||
|
|
|
@ -314,7 +314,7 @@ def apply_filters(q, filters, author_id=None):
|
||||||
|
|
||||||
|
|
||||||
@query.field("get_shout")
|
@query.field("get_shout")
|
||||||
async def get_shout(_, info, slug = "", shout_id = 0):
|
async def get_shout(_, _info, slug="", shout_id=0):
|
||||||
"""
|
"""
|
||||||
Получение публикации по slug.
|
Получение публикации по slug.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user