fixed layout name in migration ('audio' -> 'music') (#89)
Co-authored-by: Igor Lobanov <igor.lobanov@onetwotrip.com>
This commit is contained in:
parent
889f802429
commit
de04c47120
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ ts = datetime.now(tz=timezone.utc)
|
|||
type2layout = {
|
||||
"Article": "article",
|
||||
"Literature": "literature",
|
||||
"Music": "audio",
|
||||
"Music": "music",
|
||||
"Video": "video",
|
||||
"Image": "image",
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ async def load_shouts_by(_, info, options):
|
|||
"""
|
||||
:param options: {
|
||||
filters: {
|
||||
layout: 'audio',
|
||||
layout: 'music',
|
||||
excludeLayout: 'article',
|
||||
visibility: "public",
|
||||
author: 'discours',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user