|
|
@@ -42,9 +42,9 @@ def home(request):
|
|
42
|
42
|
counter.CSSclass = "primary"
|
|
43
|
43
|
if (counter.lastReset.delta.total_seconds())/(24*3600) > maxJSS:
|
|
44
|
44
|
maxJSS = (counter.lastReset.delta.total_seconds())/(24*3600)
|
|
45
|
|
- counter.lastReset.formatted_delta = format_timedelta(counter.lastReset.delta,locale='fr',threshold=1)
|
|
46
|
45
|
else:
|
|
47
|
46
|
counter.CSSclass = "danger"
|
|
|
47
|
+ counter.lastReset.formatted_delta = format_timedelta(counter.lastReset.delta,locale='fr',threshold=1)
|
|
48
|
48
|
counter.isHidden = "hidden"
|
|
49
|
49
|
counters = sorted(counters,key=lambda t: t.lastReset.delta)
|
|
50
|
50
|
#Column graph
|