From c13216761e05d50f91d9fdd3e939ae27ea73135c Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Mon, 6 Feb 2023 15:00:34 +0100 Subject: [PATCH] #290 Egon exporter file name * replace user given file name with file based file name for egon export handling --- intervention/utils/egon_export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intervention/utils/egon_export.py b/intervention/utils/egon_export.py index 2589595f..653a630a 100644 --- a/intervention/utils/egon_export.py +++ b/intervention/utils/egon_export.py @@ -152,7 +152,7 @@ class EgonGmlBuilder: "oneo:aufnahmezeitpunkt": doc.date_of_creation.strftime(DEFAULT_DATE_FORMAT), "oneo:bemerkung": doc.comment, "oneo:fotoverweis": base64.b64encode(doc.file.read()).decode("utf-8"), - "oneo:dateiname": doc.title, + "oneo:dateiname": doc.file.url.split("/")[-1], "oneo:hauptfoto": False, } } for doc in regular_docs