/soc/2012/sanket/www-statscollector: 0861103ebed4: [BUGFIX] App-...

sanket sanket at soc.pidgin.im
Sun Aug 12 09:03:16 EDT 2012


Changeset: 0861103ebed4fa9265c343ac8f66e151b70a97d5
Author:	 sanket <sanket at soc.pidgin.im>
Date:	 2012-08-12 06:02 +0530
Branch:	 default
URL: http://hg.pidgin.im/soc/2012/sanket/www-statscollector/rev/0861103ebed4

Description:

[BUGFIX] App-bitness chart with insufficient data

diffstat:

 pidgin_stats_collector/display/views.py |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (17 lines):

diff --git a/pidgin_stats_collector/display/views.py b/pidgin_stats_collector/display/views.py
--- a/pidgin_stats_collector/display/views.py
+++ b/pidgin_stats_collector/display/views.py
@@ -145,6 +145,13 @@ def process_stats(from_date, to_date):
       .values('app_bit') \
       .annotate(Count('app_bit'))
 
+  stats_app_bit[32] = 0
+  stats_app_bit[64] = 0
+
+  stats_os_bit[32] = 0
+  stats_os_bit[64] = 0
+
+
   for app_bit in app_bit_dict:
     stats_app_bit[app_bit['app_bit']] = app_bit['app_bit__count']
 



More information about the Commits mailing list