summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-28 14:48:07 +0000
committerDavid Baker <dave@matrix.org>2015-01-28 14:48:07 +0000
commitfb0928097a0dc1606aebb9aed8f070bcea304178 (patch)
tree2f4b5d14e8d75cfc9131cdabf6961cc77abe0e43 /synapse/storage/_base.py
parentGoogle doc style (diff)
downloadsynapse-fb0928097a0dc1606aebb9aed8f070bcea304178.tar.xz
More magic commas (including the place I copied it from...)
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 809c81f47f..9261c999cb 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -210,8 +210,8 @@ class SQLBaseStore(object):
         # Try to update
         sql = "UPDATE %s SET %s WHERE %s" % (
             table,
-            ", ".join("%s = ?" % (k) for k in values),
-            " AND ".join("%s = ?" % (k) for k in keyvalues)
+            ", ".join("%s = ?" % (k,) for k in values),
+            " AND ".join("%s = ?" % (k,) for k in keyvalues)
         )
         sqlargs = values.values() + keyvalues.values()
         logger.debug(
@@ -390,8 +390,8 @@ class SQLBaseStore(object):
         if updatevalues:
             update_sql = "UPDATE %s SET %s WHERE %s" % (
                 table,
-                ", ".join("%s = ?" % (k) for k in updatevalues),
-                " AND ".join("%s = ?" % (k) for k in keyvalues)
+                ", ".join("%s = ?" % (k,) for k in updatevalues),
+                " AND ".join("%s = ?" % (k,) for k in keyvalues)
             )
 
         def func(txn):