]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/models.py
Clean up the rest of the main index style issues.
[xonotic/xonstat.git] / xonstat / models.py
index 4e3bb63ce6f7dd8672c0943f72709931e9cd3e5c..eb0a1317647522517ad67be21bd6a45dee9b981d 100644 (file)
@@ -4,6 +4,7 @@ import math
 import sqlalchemy
 import sqlalchemy.sql.functions as sfunc
 from calendar import timegm
+from datetime import datetime as dt
 from datetime import timedelta
 from sqlalchemy.orm import mapper
 from sqlalchemy.orm import scoped_session
@@ -67,6 +68,7 @@ class Server(object):
         self.name = name
         self.hashkey = hashkey
         self.ip_addr = ip_addr
+        self.create_dt = dt.utcnow()
 
     def __repr__(self):
         return "<Server(%s, %s)>" % (self.server_id, self.name.encode('utf-8'))