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:
|
while not self._instance:
|
||||||
await sleep(1)
|
await sleep(1)
|
||||||
try:
|
try:
|
||||||
print("[redis] " + command + ' ' + ' '.join(args))
|
# print("[redis] " + command + ' ' + ' '.join(args))
|
||||||
return await self._instance.execute_command(command, *args, **kwargs)
|
return await self._instance.execute_command(command, *args, **kwargs)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
async def lrange(self, key, start, stop):
|
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)
|
return await self._instance.lrange(key, start, stop)
|
||||||
|
|
||||||
async def mget(self, key, *keys):
|
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)
|
return await self._instance.mget(key, *keys)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ ts = datetime.now(tz=timezone.utc)
|
||||||
type2layout = {
|
type2layout = {
|
||||||
"Article": "article",
|
"Article": "article",
|
||||||
"Literature": "literature",
|
"Literature": "literature",
|
||||||
"Music": "audio",
|
"Music": "music",
|
||||||
"Video": "video",
|
"Video": "video",
|
||||||
"Image": "image",
|
"Image": "image",
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,7 +124,7 @@ async def load_shouts_by(_, info, options):
|
||||||
"""
|
"""
|
||||||
:param options: {
|
:param options: {
|
||||||
filters: {
|
filters: {
|
||||||
layout: 'audio',
|
layout: 'music',
|
||||||
excludeLayout: 'article',
|
excludeLayout: 'article',
|
||||||
visibility: "public",
|
visibility: "public",
|
||||||
author: 'discours',
|
author: 'discours',
|
||||||
|
|
|
@ -410,7 +410,7 @@ type Shout {
|
||||||
lang: String
|
lang: String
|
||||||
community: String
|
community: String
|
||||||
cover: 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
|
versionOf: String # for translations and re-telling the same story
|
||||||
visibility: String # owner authors community public
|
visibility: String # owner authors community public
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
|
|
Loading…
Reference in New Issue
Block a user