@cache_region('hourly_term')
-def get_top_servers_by_games(limit=None, start=None):
+def get_top_servers_by_play_time(limit=None, start=None):
"""
- The top servers by the number of games played during a date range.
+ The top servers by the cumulative amount of time played on them during a given interval.
"""
q = DBSession.query(ActiveServer)
top_players = get_top_players_by_time(10)
# top servers by number of games
- top_servers = get_top_servers_by_games(10)
+ top_servers = get_top_servers_by_play_time(10)
# top maps by total times played
top_maps = get_top_maps_by_games(10)
except:
start = None
- top_servers = get_top_servers_by_games(20, start)
+ top_servers = get_top_servers_by_play_time(20, start)
# building a query string
query = {}