This commit is contained in:
H. Shay 2023-07-18 15:56:12 -07:00
parent e0384a1f78
commit af4df2f639
2 changed files with 3 additions and 3 deletions

View File

@ -697,7 +697,7 @@ class StatsStore(StateDeltasStore):
txn: LoggingTransaction, txn: LoggingTransaction,
) -> Tuple[List[JsonDict], int]: ) -> Tuple[List[JsonDict], int]:
filters = [] filters = []
args = [] args: list = []
if search_term: if search_term:
filters.append("(lmr.user_id LIKE ? OR displayname LIKE ?)") filters.append("(lmr.user_id LIKE ? OR displayname LIKE ?)")

View File

@ -424,8 +424,8 @@ class UserDirectoryBackgroundUpdateStore(StateDeltasStore):
keyvalues={}, keyvalues={},
) )
profiles = { profiles = {
row['full_user_id']: _UserDirProfile( row["full_user_id"]: _UserDirProfile(
row['full_user_id'], row["full_user_id"],
row["displayname"], row["displayname"],
row["avatar_url"], row["avatar_url"],
) )