From bf41a29e7b4ca13a787f2006ea179ebec01ef1e0 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Tue, 19 Nov 2019 11:05:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20sbb=5Ftextline=5Fdetector:=20Do?= =?UTF-8?q?=20not=20hardcode=20Created/LastChange=20elements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/sbb_textline_detector/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qurator/sbb_textline_detector/main.py b/qurator/sbb_textline_detector/main.py index e6d9f46..6f30785 100644 --- a/qurator/sbb_textline_detector/main.py +++ b/qurator/sbb_textline_detector/main.py @@ -26,6 +26,8 @@ import warnings import click import time from multiprocessing import Process, Queue, cpu_count +import datetime + with warnings.catch_warnings(): warnings.simplefilter("ignore") @@ -1269,11 +1271,9 @@ class textlineerkenner: created=ET.SubElement(metadata, 'Created') - created.text = '2019-06-17T18:15:12' - + created.text = datetime.datetime.now().isoformat() changetime=ET.SubElement(metadata, 'LastChange') - changetime.text = '2019-06-17T18:15:12' - + changetime.text = datetime.datetime.now().isoformat() page=ET.SubElement(data,'Page')