mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 13:13:54 +02:00
checkpoint: Remove quotes from company names in relations
This commit is contained in:
@ -65,7 +65,7 @@ def parse_stakeholder(data: dict) -> CompanyRelationship | None:
|
|||||||
**{
|
**{
|
||||||
"name": data["Beteiligter"]["Natuerliche_Person"]["Voller_Name"][
|
"name": data["Beteiligter"]["Natuerliche_Person"]["Voller_Name"][
|
||||||
"Nachname"
|
"Nachname"
|
||||||
],
|
].replace('"', ""),
|
||||||
"location": Location(
|
"location": Location(
|
||||||
**{
|
**{
|
||||||
"city": data["Beteiligter"]["Natuerliche_Person"][
|
"city": data["Beteiligter"]["Natuerliche_Person"][
|
||||||
@ -130,7 +130,7 @@ def parse_stakeholder(data: dict) -> CompanyRelationship | None:
|
|||||||
),
|
),
|
||||||
"name": data["Beteiligter"]["Organisation"]["Bezeichnung"][
|
"name": data["Beteiligter"]["Organisation"]["Bezeichnung"][
|
||||||
"Bezeichnung_Aktuell"
|
"Bezeichnung_Aktuell"
|
||||||
],
|
].replace('"', ""),
|
||||||
"location": Location(
|
"location": Location(
|
||||||
**{
|
**{
|
||||||
"city": data["Beteiligter"]["Organisation"]["Anschrift"]["Ort"],
|
"city": data["Beteiligter"]["Organisation"]["Anschrift"]["Ort"],
|
||||||
|
@ -46,7 +46,7 @@ def test_parse_stakeholder_org_hidden_in_person() -> None:
|
|||||||
data = {
|
data = {
|
||||||
"Beteiligter": {
|
"Beteiligter": {
|
||||||
"Natuerliche_Person": {
|
"Natuerliche_Person": {
|
||||||
"Voller_Name": {"Vorname": None, "Nachname": "Some Company KG"},
|
"Voller_Name": {"Vorname": None, "Nachname": '"Some Company KG'},
|
||||||
"Anschrift": {"Ort": "Area 51"},
|
"Anschrift": {"Ort": "Area 51"},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user