Created
December 15, 2011 02:59
-
-
Save rhelmer/1479634 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/socorro/external/postgresql/search.py b/socorro/external/postgresql/search.py | |
| index 5354757..0fc90e7 100644 | |
| --- a/socorro/external/postgresql/search.py | |
| +++ b/socorro/external/postgresql/search.py | |
| @@ -160,8 +160,8 @@ class Search(PostgreSQLBase): | |
| for x in range(0, len(params["versions"]), 2): | |
| version_where = [] | |
| - version_where.append(str(x).join(("r.product=%(version", | |
| - ")s"))) | |
| + #version_where.append(str(x).join(("r.product=%(version", | |
| + # ")s"))) | |
| key = "%s:%s" % (params["versions"][x], | |
| params["versions"][x + 1]) | |
| @@ -170,7 +170,7 @@ class Search(PostgreSQLBase): | |
| versions_info, x, sql_params, | |
| version_where) | |
| - version_where.append(str(x + 1).join(( | |
| + version_where.append(str(x).join(( | |
| "r.version=%(version", ")s"))) | |
| versions_where.append("(%s)" % " AND ".join(version_where)) | |
| @@ -397,7 +397,7 @@ class Search(PostgreSQLBase): | |
| version_info = None | |
| if not x: | |
| - version_param = "version" | |
| + version_param = "version0" | |
| else: | |
| version_param = "version%s" % (x + 1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment