Merge pull request '#290 Egon exporter file name' (#291) from 290_EGON_Exporter_file_name into master

Reviewed-on: SGD-Nord/konova#291
pull/292/head
mpeltriaux 2 years ago
commit 9b3dba9eab

@ -152,7 +152,7 @@ class EgonGmlBuilder:
"oneo:aufnahmezeitpunkt": doc.date_of_creation.strftime(DEFAULT_DATE_FORMAT), "oneo:aufnahmezeitpunkt": doc.date_of_creation.strftime(DEFAULT_DATE_FORMAT),
"oneo:bemerkung": doc.comment, "oneo:bemerkung": doc.comment,
"oneo:fotoverweis": base64.b64encode(doc.file.read()).decode("utf-8"), "oneo:fotoverweis": base64.b64encode(doc.file.read()).decode("utf-8"),
"oneo:dateiname": doc.title, "oneo:dateiname": doc.file.url.split("/")[-1],
"oneo:hauptfoto": False, "oneo:hauptfoto": False,
} }
} for doc in regular_docs } for doc in regular_docs

Loading…
Cancel
Save