rename config property user_id to select_values

This commit is contained in:
HgO 2024-08-11 09:42:32 +02:00
parent 34ef836d96
commit dfd1beb238
3 changed files with 5 additions and 5 deletions

View file

@ -46,7 +46,7 @@ dm:
room_title: Alerts for {user}
users:
- matrix_id: "@user:matrix.example.com"
user_id:
select_values:
- ec76b3e6-b49c-46c3-bd35-a329eaeafc4c
webhook:

View file

@ -222,8 +222,8 @@ class Config:
self.dm_users: BiDict[str, str] = BiDict()
for user in self._get_cfg(["dm", "users"], default=[]):
for user_id in user["user_id"]:
self.dm_users[user_id] = user["matrix_id"]
for select_value in user["select_values"]:
self.dm_users[select_value] = user["matrix_id"]
self.dm_room_title: str = self._get_cfg(["dm", "room_title"], required=False)
filter_labels: Dict[str, str] = self._get_cfg(

View file

@ -78,10 +78,10 @@ dm:
room_title: Alerts for {user}
users:
- matrix_id: "@some_other_user1:example.com"
user_id:
select_values:
- a7b37c33-574c-45ac-bb07-a3b314c2da54
- matrix_id: "@some_other_user2:example.com"
user_id:
select_values:
- cfb32a1d-737a-4618-8ee9-09b254d98fee
- 27e73f9b-b40a-4d84-b5b5-225931f6c289
cache: