fix contract

This commit is contained in:
Alejandro Vazquez
2026-04-09 22:31:33 -03:00
parent 18f1d3a8c3
commit 0e39bf28e8
14 changed files with 2594 additions and 11 deletions
+10
View File
@@ -108,6 +108,16 @@ def dashboard_stats_api():
'monthly_data': list(reversed(monthly_data))
})
@main_bp.route('/genetic-optimizer')
@login_required
def genetic_optimizer():
"""Serve the genetic algorithm optimization interface"""
if current_user.role not in ['admin', 'teacher']:
flash('You do not have permission to access the optimization tool.', 'danger')
return redirect(url_for('main.dashboard'))
return render_template('genetic_optimizer.html')
@main_bp.route('/set_language/<language>')
def set_language(language=None):
if language not in ['en', 'es']: