diff --git a/litecord/blueprints/channels.py b/litecord/blueprints/channels.py index 2e0f9f8..ff80c42 100644 --- a/litecord/blueprints/channels.py +++ b/litecord/blueprints/channels.py @@ -701,7 +701,7 @@ async def _search_channel(channel_id): # main search query # the context (before/after) columns are copied from the guilds blueprint. rows = await app.db.fetch( - f""" + """ SELECT orig.id AS current_id, COUNT(*) OVER() AS total_results, array((SELECT messages.id AS before_id diff --git a/litecord/blueprints/guilds.py b/litecord/blueprints/guilds.py index faf6670..1f15f3a 100644 --- a/litecord/blueprints/guilds.py +++ b/litecord/blueprints/guilds.py @@ -411,7 +411,7 @@ async def search_messages(guild_id): can_read = await fetch_readable_channels(guild_id, user_id) rows = await app.db.fetch( - f""" + """ SELECT orig.id AS current_id, COUNT(*) OVER() as total_results, array((SELECT messages.id AS before_id