mirror of https://gitlab.com/litecord/litecord.git
fix typing on message_search internal function
This commit is contained in:
parent
92dba16237
commit
3ed0ff8176
|
|
@ -62,7 +62,9 @@ async def message_search(
|
|||
if after:
|
||||
where_clause += f"AND id > {after}"
|
||||
|
||||
return await app.db.fetch(
|
||||
return [
|
||||
row["id"]
|
||||
for row in await app.db.fetch(
|
||||
f"""
|
||||
SELECT id
|
||||
FROM messages
|
||||
|
|
@ -72,6 +74,7 @@ async def message_search(
|
|||
""",
|
||||
channel_id,
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
async def around_message_search(
|
||||
|
|
@ -120,7 +123,7 @@ async def get_messages(channel_id):
|
|||
result = []
|
||||
|
||||
for message_id in message_ids:
|
||||
msg = await app.storage.get_message(message_id["id"], user_id)
|
||||
msg = await app.storage.get_message(message_id, user_id)
|
||||
|
||||
if msg is None:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in New Issue