mirror of https://github.com/MISP/misp-dashboard
fix: getDates was omitting dates
parent
bb3ccf2815
commit
d8d9d5a145
|
@ -58,6 +58,8 @@ class Users_helper:
|
|||
t = datetime.datetime.fromtimestamp(float(t[1]))
|
||||
if util.getDateStrFormat(t) == util.getDateStrFormat(date): #same day
|
||||
to_return.append(t)
|
||||
elif util.getDateStrFormat(t) > util.getDateStrFormat(date):
|
||||
continue # timestamps should be sorted, skipping to reach wanted date
|
||||
else:
|
||||
break # timestamps should be sorted, no need to process anymore
|
||||
return to_return
|
||||
|
|
Loading…
Reference in New Issue