From 4a685f27b9e7ad55ee4ce57428cb20800789a75f Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Mon, 8 Jan 2024 12:04:48 +0000 Subject: [PATCH] Minor fixes to backfill script --- webservice/add_reports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webservice/add_reports.py b/webservice/add_reports.py index 2766fe274..96044fd31 100644 --- a/webservice/add_reports.py +++ b/webservice/add_reports.py @@ -9,7 +9,7 @@ from .config import webservice as config from .webservice import init_md_client ap = argparse.ArgumentParser() -ap.add_argument("db-file") +ap.add_argument("db_file") ap.add_argument("--really", action="store_true") args = ap.parse_args() @@ -37,7 +37,7 @@ for i, r in enumerate(rows): continue if not os.path.isfile(report_path): - print(f"Report file {report_path} missing (p{r['proposal']}, r{r['run']}") + print(f"Report file {report_path} missing (p{r['proposal']}, r{r['run']})") continue desc = f"{r['karabo_id']} detector corrections" -- GitLab