diff options
author | David Baker <dave@matrix.org> | 2016-04-07 17:45:01 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-04-07 17:45:01 +0100 |
commit | d9f38561c8855fa6893868069f0ec00d802618df (patch) | |
tree | 5bfd6e872e461e60e4bebb8ef9f6475248574a0b /synapse/storage/pusher.py | |
parent | generate id in the main thread (diff) | |
download | synapse-d9f38561c8855fa6893868069f0ec00d802618df.tar.xz |
Literally a dictionary
Diffstat (limited to 'synapse/storage/pusher.py')
-rw-r--r-- | synapse/storage/pusher.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/synapse/storage/pusher.py b/synapse/storage/pusher.py index b314e3ab4f..b34a30a8fb 100644 --- a/synapse/storage/pusher.py +++ b/synapse/storage/pusher.py @@ -130,23 +130,23 @@ class PusherStore(SQLBaseStore): return self._simple_upsert_txn( txn, "pushers", - dict( - app_id=app_id, - pushkey=pushkey, - user_name=user_id, - ), - dict( - access_token=access_token, - kind=kind, - app_display_name=app_display_name, - device_display_name=device_display_name, - ts=pushkey_ts, - lang=lang, - data=encode_canonical_json(data), - last_stream_ordering=last_stream_ordering, - profile_tag=profile_tag, - id=stream_id, - ), + { + "app_id": app_id, + "pushkey": pushkey, + "user_name": user_id, + }, + { + "access_token": access_token, + "kind": kind, + "app_display_name": app_display_name, + "device_display_name": device_display_name, + "ts": pushkey_ts, + "lang": lang, + "data": encode_canonical_json(data), + "last_stream_ordering": last_stream_ordering, + "profile_tag": profile_tag, + "id": stream_id, + }, ) defer.returnValue((yield self.runInteraction("add_pusher", f))) |