mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Use %s instead of +
This commit is contained in:
parent
93aac9bb7b
commit
e78dd33292
@ -85,8 +85,8 @@ class PushRuleStore(SQLBaseStore):
|
||||
|
||||
# get the priority of the rule we're inserting after/before
|
||||
sql = (
|
||||
"SELECT priority_class, priority FROM "+PushRuleTable.table_name+
|
||||
" WHERE user_name = ? and rule_id = ?"
|
||||
"SELECT priority_class, priority FROM ? "
|
||||
"WHERE user_name = ? and rule_id = ?" % (PushRuleTable.table_name,)
|
||||
)
|
||||
txn.execute(sql, (user_name, relative_to_rule))
|
||||
res = txn.fetchall()
|
||||
|
Loading…
Reference in New Issue
Block a user