From 4a2fbb5fac67dc8e4066c2b86138e70a5ef06287 Mon Sep 17 00:00:00 2001 From: Olli Jarva Date: Sun, 23 Mar 2014 22:10:40 +0200 Subject: [PATCH] Bugfix: counters for boomerang are not casted to int When processing boomerang data, views.process_summaries fails, as variables in "keys" dictionary are unicode objects. All values should be timestamps from navigation timing, so casting is safe. --- django_statsd/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_statsd/views.py b/django_statsd/views.py index 2b5c752..fa7217b 100644 --- a/django_statsd/views.py +++ b/django_statsd/views.py @@ -94,7 +94,7 @@ def _process_boomerang(request): continue if k in boomerang: process_key(start, k, v) - keys[k] = v + keys[k] = int(v) try: _process_summaries(start, keys)