From 7363126d7953e896058ee034a26f01d0d15f274f Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Thu, 24 Aug 2023 10:18:26 +0200 Subject: [PATCH] Add run_id to a few messages --- server/fishtest/rundb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/fishtest/rundb.py b/server/fishtest/rundb.py index ffebe4548..b5dbcccb1 100644 --- a/server/fishtest/rundb.py +++ b/server/fishtest/rundb.py @@ -1322,19 +1322,19 @@ def stop_run(self, run_id): def approve_run(self, run_id, approver): run = self.get_run(run_id) if run is None: - return None, "Run not found!" + return None, f"Run {str(run_id)} not found!" # Can't self approve if run["args"]["username"] == approver: - return None, "Self approval is disabled!" + return None, f"Run {str(run_id)}: Self approval is disabled!" # Only one approval per run if not run["approved"]: run["approved"] = True run["approver"] = approver self.buffer(run, True) self.task_time = 0 - return run, "Run approved" + return run, f"Run {str(run_id)} approved" else: - return None, "Run already approved!" + return None, f"Run {str(run_id)} already approved!" def purge_run(self, run, p=0.001, res=7.0, iters=1): # Only purge finished runs