forked from cswimr/SeaCogs
fix(aurora): actually fixed duration error
This commit is contained in:
parent
673e8b41d1
commit
e62bd62e29
3 changed files with 3 additions and 2 deletions
|
@ -85,7 +85,7 @@ class ImportAuroraView(ui.View):
|
||||||
case["target_type"],
|
case["target_type"],
|
||||||
case["target_id"],
|
case["target_id"],
|
||||||
case["role_id"],
|
case["role_id"],
|
||||||
str(duration),
|
duration,
|
||||||
case["reason"],
|
case["reason"],
|
||||||
timestamp=case["timestamp"],
|
timestamp=case["timestamp"],
|
||||||
resolved=case["resolved"],
|
resolved=case["resolved"],
|
||||||
|
|
|
@ -123,7 +123,7 @@ class ImportGalacticBotView(ui.View):
|
||||||
case['targetType'],
|
case['targetType'],
|
||||||
case['target'],
|
case['target'],
|
||||||
0,
|
0,
|
||||||
str(duration),
|
duration,
|
||||||
reason,
|
reason,
|
||||||
timestamp=timestamp,
|
timestamp=timestamp,
|
||||||
resolved=resolved,
|
resolved=resolved,
|
||||||
|
|
|
@ -127,6 +127,7 @@ async def mysql_log(
|
||||||
if duration != "NULL":
|
if duration != "NULL":
|
||||||
end_timedelta = datetime.fromtimestamp(timestamp) + duration
|
end_timedelta = datetime.fromtimestamp(timestamp) + duration
|
||||||
end_timestamp = int(end_timedelta.timestamp())
|
end_timestamp = int(end_timedelta.timestamp())
|
||||||
|
duration = str(duration)
|
||||||
else:
|
else:
|
||||||
end_timestamp = 0
|
end_timestamp = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue