From 2298cfd9bbc5d45bca32243a6d54d20a697651ec Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 25 Nov 2015 12:15:36 +0200 Subject: Cleanup --- servo/messaging/sms.py | 3 ++- servo/stats/queries.py | 1 + servo/urls/checkin.py | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'servo') diff --git a/servo/messaging/sms.py b/servo/messaging/sms.py index 7f9535d..352a297 100644 --- a/servo/messaging/sms.py +++ b/servo/messaging/sms.py @@ -166,5 +166,6 @@ class HttpProvider: 'to' : number }) - f = urllib.urlopen("%s?%s" % (conf['sms_http_url'], params), context=_create_unverified_context()) + f = urllib.urlopen("%s?%s" % (conf['sms_http_url'], params), + context=_create_unverified_context()) return f.read() diff --git a/servo/stats/queries.py b/servo/stats/queries.py index 85c5dbd..df93146 100644 --- a/servo/stats/queries.py +++ b/servo/stats/queries.py @@ -11,6 +11,7 @@ class StatsManager: def _result(self, args): result = [] self.cursor.execute(self.sql, args) + for k, v in self.cursor.fetchall(): if isinstance(v, decimal.Decimal): v = float(v) diff --git a/servo/urls/checkin.py b/servo/urls/checkin.py index 13bdf66..aa772d7 100644 --- a/servo/urls/checkin.py +++ b/servo/urls/checkin.py @@ -16,5 +16,4 @@ urlpatterns = patterns( url(r'^checkin/print/(\w+)/$', print_confirmation, name='checkin-print'), url(r'^thanks/(\w+)/$', thanks, name='checkin-thanks'), url(r'^terms/$', terms, name='checkin-terms'), - ) -- cgit v1.2.3