A Xonotic server, identifiable by name and (when there's a conflict) hashkey.
"""
- def __init__(self, name=None, hashkey=None, ip_addr=None, elo_ind=None):
+ def __init__(self, name=None, hashkey=None, ip_addr=None, elo_ind=None, categories=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()
+ self.categories = categories
def __repr__(self):
return "<Server({}, {})>".format(self.server_id, self.name.encode('utf-8'))
'name': self.name,
'ip_addr': self.ip_addr,
'location': self.location,
+ 'categories': self.categories,
}