diff core/whos_online.py @ 599:2f5779e9d8f8

Fix max users stat not updating.
author Brian Neal <bgneal@gmail.com>
date Wed, 04 Jul 2012 00:14:00 -0500
parents ee87ea74d46b
children
line wrap: on
line diff
--- 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'])))