diff options
Diffstat (limited to 'servo')
-rw-r--r-- | servo/messaging/sms.py | 3 | ||||
-rw-r--r-- | servo/stats/queries.py | 1 | ||||
-rw-r--r-- | servo/urls/checkin.py | 1 |
3 files changed, 3 insertions, 2 deletions
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'), - ) |