fix(aurora): fixed update query for /edit
if parsed_time is given
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 40s
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 40s
This commit is contained in:
parent
7d2fd89261
commit
f1fbec1fd5
1 changed files with 1 additions and 1 deletions
|
@ -919,7 +919,7 @@ class Aurora(commands.Cog):
|
||||||
|
|
||||||
if parsed_time:
|
if parsed_time:
|
||||||
update_query = f"UPDATE `moderation_{interaction.guild.id}` SET changes = ?, reason = ?, duration = ?, end_timestamp = ? WHERE moderation_id = ?"
|
update_query = f"UPDATE `moderation_{interaction.guild.id}` SET changes = ?, reason = ?, duration = ?, end_timestamp = ? WHERE moderation_id = ?"
|
||||||
cursor.execute(update_query, (json.dumps(changes), reason, parsed_time, end_timestamp, case))
|
cursor.execute(update_query, (json.dumps(changes), reason, convert_timedelta_to_str(parsed_time), end_timestamp, case))
|
||||||
else:
|
else:
|
||||||
update_query = f"UPDATE `moderation_{interaction.guild.id}` SET changes = ?, reason = ? WHERE moderation_id = ?"
|
update_query = f"UPDATE `moderation_{interaction.guild.id}` SET changes = ?, reason = ? WHERE moderation_id = ?"
|
||||||
cursor.execute(update_query, (json.dumps(changes), reason, case))
|
cursor.execute(update_query, (json.dumps(changes), reason, case))
|
||||||
|
|
Loading…
Reference in a new issue