diff options
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"], ) |