convert Moderation to sqlite3 (and rename it to Aurora) #12

Merged
cswimr merged 16 commits from sqlite3 into main 2023-12-28 05:22:52 -05:00
3 changed files with 3 additions and 2 deletions
Showing only changes of commit e62bd62e29 - Show all commits

View file

@ -85,7 +85,7 @@ class ImportAuroraView(ui.View):
case["target_type"],
case["target_id"],
case["role_id"],
str(duration),
duration,
case["reason"],
timestamp=case["timestamp"],
resolved=case["resolved"],

View file

@ -123,7 +123,7 @@ class ImportGalacticBotView(ui.View):
case['targetType'],
case['target'],
0,
str(duration),
duration,
reason,
timestamp=timestamp,
resolved=resolved,

View file

@ -127,6 +127,7 @@ async def mysql_log(
if duration != "NULL":
end_timedelta = datetime.fromtimestamp(timestamp) + duration
end_timestamp = int(end_timedelta.timestamp())
duration = str(duration)
else:
end_timestamp = 0