summary refs log tree commit diff
path: root/contrib/graph/graph2.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-10-23 16:49:05 +0100
committerGitHub <noreply@github.com>2019-10-23 16:49:05 +0100
commit92e88a71d31e9a1424acd8a3a8cf9ee02b4af9ea (patch)
treea8a5cd16fb46a2061b05e66570630442526318cb /contrib/graph/graph2.py
parentMerge pull request #6243 from matrix-org/babolivier/port_db_fix_imports (diff)
downloadsynapse-92e88a71d31e9a1424acd8a3a8cf9ee02b4af9ea.tar.xz
Cleanup extra quotes from IDEs (#6236)
Diffstat (limited to 'contrib/graph/graph2.py')
-rw-r--r--contrib/graph/graph2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/graph/graph2.py b/contrib/graph/graph2.py
index 9db8725eee..4619f0e3c1 100644
--- a/contrib/graph/graph2.py
+++ b/contrib/graph/graph2.py
@@ -36,7 +36,7 @@ def make_graph(db_name, room_id, file_prefix, limit):
     args = [room_id]
 
     if limit:
-        sql += " ORDER BY topological_ordering DESC, stream_ordering DESC " "LIMIT ?"
+        sql += " ORDER BY topological_ordering DESC, stream_ordering DESC LIMIT ?"
 
         args.append(limit)
 
@@ -53,7 +53,7 @@ def make_graph(db_name, room_id, file_prefix, limit):
 
     for event in events:
         c = conn.execute(
-            "SELECT state_group FROM event_to_state_groups " "WHERE event_id = ?",
+            "SELECT state_group FROM event_to_state_groups WHERE event_id = ?",
             (event.event_id,),
         )