mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Prevent evaluating as a bool
This commit is contained in:
@@ -794,7 +794,7 @@ def find_data(type_id, get_cols, sort, limit, constraints):
|
||||
alias = d_table.alias()
|
||||
id_col = first_alias.c.thing_id
|
||||
|
||||
if id_col:
|
||||
if id_col is not None:
|
||||
s.append_whereclause(id_col == alias.c.thing_id)
|
||||
|
||||
s.append_column(alias.c.value.label(key))
|
||||
|
||||
Reference in New Issue
Block a user