Skip to content

Commit

Permalink
bad, bad typo
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsw committed Nov 18, 2008
1 parent 821e7b0 commit cf9f1db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/db.py
Expand Up @@ -295,14 +295,14 @@ def sqlors(left, lst):
lst = list(lst)
ln = len(lst)
if ln == 0:
return SQLQuery("2+2=5")
return SQLQuery("1=2")
if ln == 1:
lst = lst[0]

if isinstance(lst, iters):
return SQLQuery(['('] +
sum([[left, sqlparam(x), ' OR '] for x in lst], []) +
['1=1)']
['1=2)']
)
else:
return left + sqlparam(lst)
Expand Down

0 comments on commit cf9f1db

Please sign in to comment.