From ae9c4a816e9df950dec01b61e08c0ff87fc3e3d8 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Fri, 11 Nov 2016 17:29:40 -0500 Subject: [PATCH] Add an Elo indicator to servers. --- xonstat/models/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.39.2