diff --git a/models.py b/models.py index 348acbb..589fe28 100644 --- a/models.py +++ b/models.py @@ -123,7 +123,7 @@ class WhaleContainerLog(db.Model): def __init__(self, container): self.user_id = container.user_id self.challenge_id = container.challenge_id - self.start_time = container.start_time + self.start_time = datetime.strptime(container.start_time, "%Y-%m-%dT%H:%M:%S.%f") self.uuid = container.uuid self.port = container.port self.flag = container.flag