diff options
author | H. Shay <hillerys@element.io> | 2023-07-18 15:56:12 -0700 |
---|---|---|
committer | H. Shay <hillerys@element.io> | 2023-07-18 15:56:12 -0700 |
commit | af4df2f639971adc0339dc6c8da910acf0b39166 (patch) | |
tree | 501117d1a419aec9172e168c9ce5e6b6a20c141b /synapse | |
parent | Merge branch 'develop' into shay/more_no_read (diff) | |
download | synapse-shay/more_no_read.tar.xz |
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/databases/main/stats.py | 2 | ||||
-rw-r--r-- | synapse/storage/databases/main/user_directory.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/databases/main/stats.py b/synapse/storage/databases/main/stats.py index 2962317ea2..f34b7ce8f4 100644 --- a/synapse/storage/databases/main/stats.py +++ b/synapse/storage/databases/main/stats.py @@ -697,7 +697,7 @@ class StatsStore(StateDeltasStore): txn: LoggingTransaction, ) -> Tuple[List[JsonDict], int]: filters = [] - args = [] + args: list = [] if search_term: filters.append("(lmr.user_id LIKE ? OR displayname LIKE ?)") diff --git a/synapse/storage/databases/main/user_directory.py b/synapse/storage/databases/main/user_directory.py index 8fa24e2870..1cb55497a1 100644 --- a/synapse/storage/databases/main/user_directory.py +++ b/synapse/storage/databases/main/user_directory.py @@ -424,8 +424,8 @@ class UserDirectoryBackgroundUpdateStore(StateDeltasStore): keyvalues={}, ) profiles = { - row['full_user_id']: _UserDirProfile( - row['full_user_id'], + row["full_user_id"]: _UserDirProfile( + row["full_user_id"], row["displayname"], row["avatar_url"], ) |