mirror of https://github.com/MISP/misp-dashboard
Changed plotting behavior of punchcard
parent
1ca2a48262
commit
445c56b07f
|
@ -111,9 +111,7 @@ class Users_helper:
|
||||||
to_append.append(week[d][h])
|
to_append.append(week[d][h])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
to_append.append(0)
|
to_append.append(0)
|
||||||
# swap 24 and 1. (punchcard starts at 1h)
|
data.append(to_append)
|
||||||
temp = to_append[1:]+[to_append[0]]
|
|
||||||
data.append(temp)
|
|
||||||
except KeyError: # no data
|
except KeyError: # no data
|
||||||
data.append([0 for x in range(24)])
|
data.append([0 for x in range(24)])
|
||||||
# swap: punchcard day starts on monday
|
# swap: punchcard day starts on monday
|
||||||
|
|
Loading…
Reference in New Issue