fixed layout name in migration ('audio' -> 'music') (#89)

Co-authored-by: Igor Lobanov <igor.lobanov@onetwotrip.com>
This commit is contained in:
Ilya Y 2023-10-10 16:37:28 +03:00 committed by GitHub
parent 889f802429
commit de04c47120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -25,17 +25,17 @@ class RedisCache:
while not self._instance:
await sleep(1)
try:
print("[redis] " + command + ' ' + ' '.join(args))
# print("[redis] " + command + ' ' + ' '.join(args))
return await self._instance.execute_command(command, *args, **kwargs)
except Exception:
pass
async def lrange(self, key, start, stop):
print(f"[redis] LRANGE {key} {start} {stop}")
# print(f"[redis] LRANGE {key} {start} {stop}")
return await self._instance.lrange(key, start, stop)
async def mget(self, key, *keys):
print(f"[redis] MGET {key} {keys}")
# print(f"[redis] MGET {key} {keys}")
return await self._instance.mget(key, *keys)

View File

@ -17,7 +17,7 @@ ts = datetime.now(tz=timezone.utc)
type2layout = {
"Article": "article",
"Literature": "literature",
"Music": "audio",
"Music": "music",
"Video": "video",
"Image": "image",
}

View File

@ -124,7 +124,7 @@ async def load_shouts_by(_, info, options):
"""
:param options: {
filters: {
layout: 'audio',
layout: 'music',
excludeLayout: 'article',
visibility: "public",
author: 'discours',

View File

@ -410,7 +410,7 @@ type Shout {
lang: String
community: String
cover: String
layout: String # audio video literature image
layout: String # music video literature image
versionOf: String # for translations and re-telling the same story
visibility: String # owner authors community public
updatedAt: DateTime