# HG changeset patch # User Brian Neal # Date 1341378840 18000 # Node ID 2f5779e9d8f8352d62af81f20349031953b33253 # Parent 2e429e2b7bb60c83499e9545b721aea41e45718b Fix max users stat not updating. diff -r 2e429e2b7bb6 -r 2f5779e9d8f8 core/models.py --- a/core/models.py Wed Jun 13 20:46:30 2012 -0500 +++ b/core/models.py Wed Jul 04 00:14:00 2012 -0500 @@ -1,10 +1,7 @@ """ This file contains the core Models used in gpp """ -import datetime - from django.db import models -from django.contrib.auth.models import User class Statistic(models.Model): diff -r 2e429e2b7bb6 -r 2f5779e9d8f8 core/whos_online.py --- a/core/whos_online.py Wed Jun 13 20:46:30 2012 -0500 +++ b/core/whos_online.py Wed Jul 04 00:14:00 2012 -0500 @@ -204,10 +204,10 @@ if stats: return Statistic( id=1, - max_users=stats['max_users'], + max_users=int(stats['max_users']), max_users_date=datetime.datetime.fromtimestamp( float(stats['max_users_date'])), - max_anon_users=stats['max_anon_users'], + max_anon_users=int(stats['max_anon_users']), max_anon_users_date=datetime.datetime.fromtimestamp( float(stats['max_anon_users_date'])))