v0.11.0 - Added a block so no bins can be counted until a master file has been uploaded.

This commit is contained in:
Javier
2026-01-25 20:17:37 -06:00
parent f7e25c8d1f
commit ff577a6cbf
6 changed files with 19 additions and 4 deletions

View File

@@ -79,6 +79,9 @@ def start_bin_count(session_id):
if not sess:
flash('Session not found or archived', 'warning')
return redirect(url_for('dashboard'))
if not sess['master_baseline_timestamp']:
flash('Master File not uploaded. Please upload it before starting bins.', 'warning')
return redirect(url_for('counting.my_counts', session_id=session_id))
location_name = request.form.get('location_name', '').strip().upper()
@@ -144,6 +147,9 @@ def count_location(session_id, location_count_id):
if not sess:
flash('Session not found or archived', 'warning')
return redirect(url_for('dashboard'))
if not sess['master_baseline_timestamp']:
flash('Master File not uploaded. Please upload it before starting bins.', 'warning')
return redirect(url_for('counting.my_counts', session_id=session_id))
location = query_db('''
SELECT * FROM LocationCounts