diff --git a/src/models/__init__.py b/src/models/__init__.py index 469cc94..db88b2a 100644 --- a/src/models/__init__.py +++ b/src/models/__init__.py @@ -33,6 +33,7 @@ class Result(db.Model): log = db.Column(db.Text) score = db.Column(db.Integer, index=True) ip = db.Column(sqlalchemy_utils.IPAddressType) + created = db.Column(db.DateTime(timezone=True), server_default=db.func.now()) # Update time created server time. def __init__(self, name="Anonymous", gpu=None, cpu=None, log=None, ip=None, score=1): self.name = name diff --git a/src/templates/result.html b/src/templates/result.html index 692db61..1b9f8bb 100644 --- a/src/templates/result.html +++ b/src/templates/result.html @@ -2,31 +2,42 @@ {% block title %}FOTB - Result #{{ name.id }} {% endblock %} {% block main %} -{{ super() }} + {{ super() }} -