mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:06:08 -04:00
Add type hints to synapse.storage.databases.main.client_ips
(#10972)
This commit is contained in:
parent
a18c568516
commit
36224e056a
5 changed files with 121 additions and 45 deletions
|
@ -773,9 +773,9 @@ class ModuleApi:
|
|||
# Sanitize some of the data. We don't want to return tokens.
|
||||
return [
|
||||
UserIpAndAgent(
|
||||
ip=str(data["ip"]),
|
||||
user_agent=str(data["user_agent"]),
|
||||
last_seen=int(data["last_seen"]),
|
||||
ip=data["ip"],
|
||||
user_agent=data["user_agent"],
|
||||
last_seen=data["last_seen"],
|
||||
)
|
||||
for data in raw_data
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue