v1.1.53: filter scenario history by app_version (fix stale results after redeploy)

This commit is contained in:
2026-07-30 16:10:53 +04:00
parent 7354d9c125
commit e5e96593f1
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -120,7 +120,7 @@ def api_scenario_run_status(run_id):
cur = conn.cursor()
cur.execute("""
SELECT id, created_at, scenario_name, status, current_step, total_steps,
duration_sec, error_log
duration_sec, error_log, app_version
FROM scenario_runs
WHERE id = %s AND client_id = %s AND stand = %s
""", (run_id, get_client_id(), get_stand()))
@@ -148,7 +148,7 @@ def api_scenario_status():
cur = conn.cursor()
cur.execute("""
SELECT id, created_at, scenario_name, status, current_step, total_steps,
duration_sec, error_log
duration_sec, error_log, app_version
FROM scenario_runs
WHERE client_id = %s AND stand = %s
ORDER BY created_at DESC