0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-20 05:44:04 +01:00

Use %s instead of +

This commit is contained in:
David Baker 2015-01-28 14:52:58 +00:00
parent 93aac9bb7b
commit e78dd33292

View file

@ -85,8 +85,8 @@ class PushRuleStore(SQLBaseStore):
# get the priority of the rule we're inserting after/before # get the priority of the rule we're inserting after/before
sql = ( sql = (
"SELECT priority_class, priority FROM "+PushRuleTable.table_name+ "SELECT priority_class, priority FROM ? "
" WHERE user_name = ? and rule_id = ?" "WHERE user_name = ? and rule_id = ?" % (PushRuleTable.table_name,)
) )
txn.execute(sql, (user_name, relative_to_rule)) txn.execute(sql, (user_name, relative_to_rule))
res = txn.fetchall() res = txn.fetchall()