Fixed dict key for startup message

This commit is contained in:
Profitroll 2023-01-05 13:16:11 +01:00
parent 78dee0591c
commit 4f0b9f8e3a

View File

@ -55,7 +55,7 @@ if __name__ == "__main__":
try: try:
if path.exists(path.join(configGet("cache", "locations"), "shutdown_time")): if path.exists(path.join(configGet("cache", "locations"), "shutdown_time")):
downtime = relativedelta(datetime.now(), datetime.fromtimestamp(jsonLoad(path.join(configGet("cache", "locations"), "shutdown_time")))) downtime = relativedelta(datetime.now(), datetime.fromtimestamp(jsonLoad(path.join(configGet("cache", "locations"), "shutdown_time"))["timestamp"]))
if downtime.days >= 1: if downtime.days >= 1:
app.send_message(configGet("owner"), locale("startup_downtime_days", "message").format(pid, downtime.days)) app.send_message(configGet("owner"), locale("startup_downtime_days", "message").format(pid, downtime.days))
elif downtime.hours >= 1: elif downtime.hours >= 1: