diff --git a/src/dsp_tools/commands/xmlupload/models/serialise/serialise_value.py b/src/dsp_tools/commands/xmlupload/models/serialise/serialise_value.py index cc6cede449..562a7f6941 100644 --- a/src/dsp_tools/commands/xmlupload/models/serialise/serialise_value.py +++ b/src/dsp_tools/commands/xmlupload/models/serialise/serialise_value.py @@ -75,7 +75,7 @@ def serialise(self) -> dict[str, Any]: def _get_one_date_dict(self, date: SingleDate, start_end: StartEnd) -> dict[str, Any]: def get_prop(precision: DayMonthYearEra) -> str: - return f"knora-api:dateValueHas{start_end!s}{precision!s}" + return f"knora-api:dateValueHas{start_end.value}{precision.value}" date_dict: dict[str, Any] = {get_prop(DayMonthYearEra.YEAR): date.year} if date.year else {} if date.month: