From de04c47120717f1ae29bd58f366fbf1b170c2f7d Mon Sep 17 00:00:00 2001 From: Ilya Y <75578537+ilya-bkv@users.noreply.github.com> Date: Tue, 10 Oct 2023 16:37:28 +0300 Subject: [PATCH] fixed layout name in migration ('audio' -> 'music') (#89) Co-authored-by: Igor Lobanov --- base/redis.py | 6 +++--- migration/tables/content_items.py | 2 +- resolvers/zine/load.py | 2 +- schema.graphql | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/base/redis.py b/base/redis.py index e1a4b903..52a49caa 100644 --- a/base/redis.py +++ b/base/redis.py @@ -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) diff --git a/migration/tables/content_items.py b/migration/tables/content_items.py index a170e0bf..8ac50224 100644 --- a/migration/tables/content_items.py +++ b/migration/tables/content_items.py @@ -17,7 +17,7 @@ ts = datetime.now(tz=timezone.utc) type2layout = { "Article": "article", "Literature": "literature", - "Music": "audio", + "Music": "music", "Video": "video", "Image": "image", } diff --git a/resolvers/zine/load.py b/resolvers/zine/load.py index 59a029fb..4619efa6 100644 --- a/resolvers/zine/load.py +++ b/resolvers/zine/load.py @@ -124,7 +124,7 @@ async def load_shouts_by(_, info, options): """ :param options: { filters: { - layout: 'audio', + layout: 'music', excludeLayout: 'article', visibility: "public", author: 'discours', diff --git a/schema.graphql b/schema.graphql index d21c4364..57147169 100644 --- a/schema.graphql +++ b/schema.graphql @@ -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