fix log in issue
This commit is contained in:
@@ -269,7 +269,10 @@ def submit_step2():
|
||||
try:
|
||||
scenario_map = json.loads(scenario_map_json) if scenario_map_json else {}
|
||||
selected_scenarios = json.loads(selected_scenarios_json) if selected_scenarios_json else []
|
||||
except json.JSONDecodeError:
|
||||
except json.JSONDecodeError as e:
|
||||
print(f"[ERROR] JSON Decode Error in submit_step2: {e}")
|
||||
print(f"[DEBUG] scenario_map_json: {scenario_map_json}")
|
||||
print(f"[DEBUG] selected_scenarios_json: {selected_scenarios_json}")
|
||||
flash('Invalid scenario data', 'error')
|
||||
return redirect(url_for('jobs.submit'))
|
||||
|
||||
@@ -308,6 +311,8 @@ def submit_step2_validated():
|
||||
|
||||
except json.JSONDecodeError as e:
|
||||
print(f"[ERROR] Step2 - JSON decode error: {e}")
|
||||
print(f"[DEBUG] organized_data_json: {organized_data_json}")
|
||||
print(f"[DEBUG] scenario_map_json: {scenario_map_json}")
|
||||
flash('Invalid scenario data', 'error')
|
||||
return redirect(url_for('jobs.submit'))
|
||||
|
||||
@@ -337,7 +342,10 @@ def submit_final():
|
||||
try:
|
||||
scenarios = json.loads(scenarios_json) if scenarios_json else []
|
||||
scenario_map = json.loads(scenario_map_json) if scenario_map_json else {}
|
||||
except json.JSONDecodeError:
|
||||
except json.JSONDecodeError as e:
|
||||
print(f"[ERROR] JSON Decode Error in submit_final: {e}")
|
||||
print(f"[DEBUG] scenarios_json: {scenarios_json}")
|
||||
print(f"[DEBUG] scenario_map_json: {scenario_map_json}")
|
||||
flash('Invalid scenario data', 'error')
|
||||
return redirect(url_for('jobs.submit'))
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
<form method="POST" action="{{ url_for('jobs.submit_step2') }}" id="scenarioForm">
|
||||
<input type="hidden" name="branch_name" value="{{ branch_name }}">
|
||||
<input type="hidden" name="scenario_map" value="{{ scenario_map|tojson }}">
|
||||
<input type="hidden" name="scenario_map" value='{{ scenario_map|tojson }}'>
|
||||
<input type="hidden" name="selected_scenarios" id="selectedScenariosInput">
|
||||
|
||||
<div class="scenario-controls">
|
||||
|
||||
Reference in New Issue
Block a user