From: Ant Zucaro Date: Fri, 11 Nov 2016 22:29:40 +0000 (-0500) Subject: Add an Elo indicator to servers. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ae9c4a816e9df950dec01b61e08c0ff87fc3e3d8;p=xonotic%2Fxonstat.git Add an Elo indicator to servers. --- diff --git a/xonstat/models/server.py b/xonstat/models/server.py index 40c4a0b..387c2cd 100644 --- a/xonstat/models/server.py +++ b/xonstat/models/server.py @@ -12,10 +12,11 @@ class Server(FuzzyDateMixin, EpochMixin): 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.elo_ind = elo_ind if elo_ind is not None else True self.create_dt = dt.utcnow() def __repr__(self):