fixed Bund highlight model
This commit is contained in:
@@ -88,7 +88,7 @@ class BundProjectHighlight(BaseModel):
|
||||
default_factory=list,
|
||||
description='Highlights from the Elasticsearch field "Zuwendungsempfänger".',
|
||||
)
|
||||
implementing_agency: list[str] = Field(
|
||||
executing_agency: list[str] = Field(
|
||||
default_factory=list,
|
||||
description='Highlights from the Elasticsearch field "Ausführende Stelle".',
|
||||
)
|
||||
@@ -146,7 +146,7 @@ class BundProjectSummary(BundProject):
|
||||
place=source.get("Ort"),
|
||||
state=source.get("Bundesland"),
|
||||
country=source.get("Staat"),
|
||||
implementing_agency=source.get("Ausführende Stelle"),
|
||||
executing_agency=source.get("Ausführende Stelle"),
|
||||
topic=source.get("Thema"),
|
||||
performance_plan_system=source.get("Leistungsplansystematik"),
|
||||
performance_plan_system_text=source.get(
|
||||
@@ -205,7 +205,7 @@ class BundProjectSummary(BundProject):
|
||||
recipient=cls._highlight_fragments(
|
||||
raw_highlight.get("Zuwendungsempfänger")
|
||||
),
|
||||
implementing_agency=cls._highlight_fragments(
|
||||
executing_agency=cls._highlight_fragments(
|
||||
raw_highlight.get("Ausführende Stelle")
|
||||
),
|
||||
)
|
||||
@@ -215,7 +215,7 @@ class BundProjectSummary(BundProject):
|
||||
highlight.joint_project,
|
||||
highlight.topic,
|
||||
highlight.recipient,
|
||||
highlight.implementing_agency,
|
||||
highlight.executing_agency,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -28,6 +28,6 @@ export interface BundProjectHighlight {
|
||||
/**
|
||||
* Highlights from the Elasticsearch field \"Ausführende Stelle\".
|
||||
*/
|
||||
implementing_agency?: Array<string>;
|
||||
executing_agency?: Array<string>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user