diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-11-21 12:00:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-21 12:00:14 +0000 |
commit | 3916e1b97a1ffc481dfdf66f7da58201a52140a9 (patch) | |
tree | 98a9c1e0ee1de0669aee83fd7b257a9e86792c45 /synapse/storage/data_stores/main/events.py | |
parent | update macOS installation instructions (diff) | |
download | synapse-3916e1b97a1ffc481dfdf66f7da58201a52140a9.tar.xz |
Clean up newline quote marks around the codebase (#6362)
Diffstat (limited to 'synapse/storage/data_stores/main/events.py')
-rw-r--r-- | synapse/storage/data_stores/main/events.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/synapse/storage/data_stores/main/events.py b/synapse/storage/data_stores/main/events.py index 878f7568a6..627c0b67f1 100644 --- a/synapse/storage/data_stores/main/events.py +++ b/synapse/storage/data_stores/main/events.py @@ -713,9 +713,7 @@ class EventsStore( metadata_json = encode_json(event.internal_metadata.get_dict()) - sql = ( - "UPDATE event_json SET internal_metadata = ?" " WHERE event_id = ?" - ) + sql = "UPDATE event_json SET internal_metadata = ? WHERE event_id = ?" txn.execute(sql, (metadata_json, event.event_id)) # Add an entry to the ex_outlier_stream table to replicate the @@ -732,7 +730,7 @@ class EventsStore( }, ) - sql = "UPDATE events SET outlier = ?" " WHERE event_id = ?" + sql = "UPDATE events SET outlier = ? WHERE event_id = ?" txn.execute(sql, (False, event.event_id)) # Update the event_backward_extremities table now that this @@ -1479,7 +1477,7 @@ class EventsStore( # We do joins against events_to_purge for e.g. calculating state # groups to purge, etc., so lets make an index. - txn.execute("CREATE INDEX events_to_purge_id" " ON events_to_purge(event_id)") + txn.execute("CREATE INDEX events_to_purge_id ON events_to_purge(event_id)") txn.execute("SELECT event_id, should_delete FROM events_to_purge") event_rows = txn.fetchall() |