forked from p34709852/monkey
Fixed zero trust bug where all events had the same timestamp
This commit is contained in:
parent
8a385eca93
commit
4073e2f41f
|
@ -23,7 +23,9 @@ class Event(EmbeddedDocument):
|
|||
|
||||
# LOGIC
|
||||
@staticmethod
|
||||
def create_event(title, message, event_type, timestamp=datetime.now()):
|
||||
def create_event(title, message, event_type, timestamp=None):
|
||||
if not timestamp:
|
||||
timestamp = datetime.now()
|
||||
event = Event(
|
||||
timestamp=timestamp,
|
||||
title=title,
|
||||
|
|
Loading…
Reference in New Issue