diff options
author | Magnus Hagander | 2018-09-16 21:47:52 +0000 |
---|---|---|
committer | Magnus Hagander | 2018-09-16 21:47:52 +0000 |
commit | df80486b73b1b8543f1a69cfd06a5397f1311590 (patch) | |
tree | 9a993d4ae7d96725aac0357b67e2d84372275847 /pgcommitfest/commitfest/views.py | |
parent | 37da576ffa4be185e669e04c1e968ec64013c198 (diff) |
Don't fail on incorrect statuses in URLtest
The comment said we should ignore the status if int() on it fails, but
to do that we have to fail it before we actually add the WHERE clause.
Thus, reorder the code to do so.
Diffstat (limited to 'pgcommitfest/commitfest/views.py')
-rw-r--r-- | pgcommitfest/commitfest/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcommitfest/commitfest/views.py b/pgcommitfest/commitfest/views.py index 3a04115..4083839 100644 --- a/pgcommitfest/commitfest/views.py +++ b/pgcommitfest/commitfest/views.py @@ -108,8 +108,8 @@ def commitfest(request, cfid): whereparams = {} if request.GET.has_key('status') and request.GET['status'] != "-1": try: - whereclauses.append("poc.status=%(status)s") whereparams['status'] = int(request.GET['status']) + whereclauses.append("poc.status=%(status)s") except ValueError: # int() failed -- so just ignore this filter pass |