diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2010-08-25 09:52:50 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2010-08-25 09:52:50 +0200 |
| commit | 92f767b05e7ccda6d62190fb6aa425557240dcff (patch) | |
| tree | 934285e9b5afdf3ac36726d28688a8dfdea7c822 /extras/appengine/sqlformat/views.py | |
| parent | 09a80107b8f5c6e12e54cafed6838aef5bd800bf (diff) | |
| download | sqlparse-92f767b05e7ccda6d62190fb6aa425557240dcff.tar.gz | |
Use parenthesis as intended (fixes an TypeError).
Diffstat (limited to 'extras/appengine/sqlformat/views.py')
| -rw-r--r-- | extras/appengine/sqlformat/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/appengine/sqlformat/views.py b/extras/appengine/sqlformat/views.py index c2bea11..806496f 100644 --- a/extras/appengine/sqlformat/views.py +++ b/extras/appengine/sqlformat/views.py @@ -170,7 +170,7 @@ def index(request): data['errors'] = str(form.errors) data['output'] = output logging.info('%r', proc_time) - data['proc_time'] = '%.3f' % proc_time or 0.0 + data['proc_time'] = '%.3f' % (proc_time or 0.0) data = json.dumps(data) return HttpResponse(data, content_type='text/x-json') elif request.POST.get('format', None) == 'text': |
