fix(aurora): minor changes to the aurora importer and also fixed a bug in the Moderation.get_latest method
This commit is contained in:
parent
8822d1714e
commit
cbd82f8572
3 changed files with 10 additions and 8 deletions
|
@ -331,10 +331,12 @@ class Moderation(AuroraGuildModel):
|
|||
if conditions:
|
||||
query += " WHERE " + " AND ".join(conditions)
|
||||
|
||||
query += " ORDER BY moderation_id DESC"
|
||||
|
||||
if limit:
|
||||
query += " LIMIT ? OFFSET ?"
|
||||
params.extend((limit, offset))
|
||||
query += " ORDER BY moderation_id DESC;"
|
||||
query += ";"
|
||||
return await cls.execute(bot=bot, guild_id=guild_id, query=query, parameters=tuple(params) if params else (), cursor=cursor)
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue