v0.11.0 - Added a block so no bins can be counted until a master file has been uploaded.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user