Fixes null state

This commit is contained in:
Mouse Reeve 2022-11-10 12:39:07 -08:00
parent f80e2465ed
commit 48d4149151

View file

@ -45,7 +45,7 @@ class Import(View):
}
seconds = get_or_set("avg-import-time", get_average_import_time, timeout=86400)
if seconds > 60**2:
if seconds and seconds > 60**2:
data["recent_avg_hours"] = seconds / (60**2)
elif seconds:
data["recent_avg_minutes"] = seconds / 60