]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Change the field to match the table column.
authorAnt Zucaro <azucaro@gmail.com>
Wed, 8 Nov 2017 02:25:03 +0000 (21:25 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 8 Nov 2017 02:25:03 +0000 (21:25 -0500)
xonstat/models/main.py

index 6eec9ac1254665ca06f0282bd93441603cc5d1b3..0648623148e500a8e6ceb0284c4c2a80d68a115b 100644 (file)
@@ -38,11 +38,11 @@ class ActiveServer(object):
     A record in the "Most Active Servers" list.
     """
 
-    def __init__(self, sort_order=None, server_id=None, server_name=None, games=None):
+    def __init__(self, sort_order=None, server_id=None, server_name=None, play_time=None):
         self.sort_order = sort_order
         self.server_id = server_id
         self.server_name = server_name
-        self.games = games
+        self.play_time = play_time
 
     def __repr__(self):
         return "<ActiveServer({0.sort_order}, {0.server_id})>".format(self)