mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
feat: implement get_col_to_description_mappings
Collect, per shared landlord_additional_info key, the list of values across all UserAddress entries. Preserves first-seen key order and input order of values. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b14f98788e
commit
c833a3c91b
1 changed files with 5 additions and 2 deletions
|
|
@ -15,5 +15,8 @@ class LandlordDescriptionOverridesOrchestrator:
|
|||
def get_col_to_description_mappings(
|
||||
self, list_of_user_address: list[UserAddress]
|
||||
) -> dict[str, list[str]]:
|
||||
|
||||
raise NotImplementedError()
|
||||
mappings: dict[str, list[str]] = {}
|
||||
for user_address in list_of_user_address:
|
||||
for key, value in user_address.landlord_additional_info.items():
|
||||
mappings.setdefault(key, []).append(value)
|
||||
return mappings
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue