diff --git a/api/app/services/price_sync_service.py b/api/app/services/price_sync_service.py index 9a6df99..b8be8e1 100644 --- a/api/app/services/price_sync_service.py +++ b/api/app/services/price_sync_service.py @@ -35,7 +35,7 @@ async def prepare_price_sync() -> dict: try: await db.execute( "INSERT INTO price_sync_runs (run_id, started_at, status) VALUES (?, ?, 'running')", - (run_id, _now().isoformat()) + (run_id, _now().strftime("%d.%m.%Y %H:%M:%S")) ) await db.commit() finally: @@ -212,7 +212,7 @@ async def _finish_run(run_id, status, log_lines, products_total=0, matched = ?, updated = ?, errors = ?, log_text = ? WHERE run_id = ? - """, (_now().isoformat(), status, products_total, matched, updated, errors, + """, (_now().strftime("%d.%m.%Y %H:%M:%S"), status, products_total, matched, updated, errors, "\n".join(log_lines), run_id)) await db.commit() finally: