summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-28 14:52:58 +0000
committerDavid Baker <dave@matrix.org>2015-01-28 14:52:58 +0000
commite78dd332928c111c8a62985bce0a3c1c5631244e (patch)
treeefa2745186a2fde64cef7000f79d9e191d53dd13 /synapse/storage
parentNewline (diff)
downloadsynapse-e78dd332928c111c8a62985bce0a3c1c5631244e.tar.xz
Use %s instead of +
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/push_rule.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/push_rule.py b/synapse/storage/push_rule.py
index 48105234f6..0342996ed1 100644
--- a/synapse/storage/push_rule.py
+++ b/synapse/storage/push_rule.py
@@ -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()