Skip to content

Instantly share code, notes, and snippets.

@rhelmer
Created December 15, 2011 03:45
Show Gist options
  • Select an option

  • Save rhelmer/1479744 to your computer and use it in GitHub Desktop.

Select an option

Save rhelmer/1479744 to your computer and use it in GitHub Desktop.
diff --git a/socorro/external/postgresql/search.py b/socorro/external/postgresql/search.py
index 5354757..283fc01 100644
--- a/socorro/external/postgresql/search.py
+++ b/socorro/external/postgresql/search.py
@@ -396,7 +396,7 @@ class Search(PostgreSQLBase):
else:
version_info = None
- if not x:
+ if x == None:
version_param = "version"
else:
version_param = "version%s" % (x + 1)
@twobraids
Copy link

that should be:

if x is None:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment