From 51b4e9b5ffec077a8a990042cc30a8979c261fe8 Mon Sep 17 00:00:00 2001 From: KoalaTrapLord <265133236+KoalaTrapLord@users.noreply.github.com> Date: Mon, 23 Mar 2026 23:00:24 -0400 Subject: [PATCH] rename: batch result files from batch- to ml-decision- prefix in lab.py --- routes/lab.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/lab.py b/routes/lab.py index c399a35..8067eef 100644 --- a/routes/lab.py +++ b/routes/lab.py @@ -79,7 +79,7 @@ async def start_batch(req: StartRequest, background_tasks: BackgroundTasks): active_batches[batch_id] = state os.makedirs(CFG.results_dir, exist_ok=True) - output_path = os.path.join(CFG.results_dir, f"batch-{batch_id}.json") + output_path = os.path.join(CFG.results_dir, f"ml-decision-{batch_id}.json") state.result_path = output_path # Auto-export deckbuilder decks to .dck if not already exported @@ -242,7 +242,7 @@ async def list_history(): if not results_dir.exists(): return {"results": []} results = [] - for f in sorted(results_dir.glob("batch-*.json"), reverse=True): + for f in sorted(results_dir.glob("ml-decision-*.json"), reverse=True): try: with open(f, "r", encoding="utf-8") as fh: data = json.load(fh) @@ -375,7 +375,7 @@ async def get_deck_trends(deck_name: str): if not results_dir.exists(): return {"deckName": deck_name, "history": []} history = [] - for f in sorted(results_dir.glob("batch-*.json")): + for f in sorted(results_dir.glob("ml-decision-*.json")): try: with open(f, "r", encoding="utf-8") as fh: data = json.load(fh)