mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-29 21:52:26 +00:00
Actually check for None rather falsey
This commit is contained in:
parent
e6459c26b4
commit
5be34fc3e3
@ -65,11 +65,11 @@ class RelationsStore(SQLBaseStore):
|
|||||||
where_clause = ["relates_to_id = ?"]
|
where_clause = ["relates_to_id = ?"]
|
||||||
where_args = [event_id]
|
where_args = [event_id]
|
||||||
|
|
||||||
if relation_type:
|
if relation_type is not None:
|
||||||
where_clause.append("relation_type = ?")
|
where_clause.append("relation_type = ?")
|
||||||
where_args.append(relation_type)
|
where_args.append(relation_type)
|
||||||
|
|
||||||
if event_type:
|
if event_type is not None:
|
||||||
where_clause.append("type = ?")
|
where_clause.append("type = ?")
|
||||||
where_args.append(event_type)
|
where_args.append(event_type)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user