Mercurial > public > sg101
changeset 599:2f5779e9d8f8
Fix max users stat not updating.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 04 Jul 2012 00:14:00 -0500 |
parents | 2e429e2b7bb6 |
children | e22a5228cc02 |
files | core/models.py core/whos_online.py |
diffstat | 2 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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):
--- 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'])))