]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Add an Elo indicator to servers.
authorAnt Zucaro <azucaro@gmail.com>
Fri, 11 Nov 2016 22:29:40 +0000 (17:29 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Fri, 11 Nov 2016 22:29:40 +0000 (17:29 -0500)
xonstat/models/server.py

index 40c4a0b3a8129472271294054465f72074a96fb2..387c2cddad37206f2041986593957fd82f64a8ee 100644 (file)
@@ -12,10 +12,11 @@ class Server(FuzzyDateMixin, EpochMixin):
     A Xonotic server, identifiable by name and (when there's a conflict) hashkey.
     """
 
     A Xonotic server, identifiable by name and (when there's a conflict) hashkey.
     """
 
-    def __init__(self, name=None, hashkey=None, ip_addr=None):
+    def __init__(self, name=None, hashkey=None, ip_addr=None, elo_ind=None):
         self.name = name
         self.hashkey = hashkey
         self.ip_addr = ip_addr
         self.name = name
         self.hashkey = hashkey
         self.ip_addr = ip_addr
+        self.elo_ind = elo_ind if elo_ind is not None else True
         self.create_dt = dt.utcnow()
 
     def __repr__(self):
         self.create_dt = dt.utcnow()
 
     def __repr__(self):