Update app.py
Browse files
app.py
CHANGED
|
@@ -160,7 +160,7 @@ def gere():
|
|
| 160 |
elif action.startswith('edit_matiere_'):
|
| 161 |
matiere_id = int(action.split('_')[-1])
|
| 162 |
matiere = Matiere.query.get_or_404(matiere_id)
|
| 163 |
-
matiere.nom = request.form.get(f'edit_nom_matiere_{matiere
|
| 164 |
try:
|
| 165 |
db.session.commit()
|
| 166 |
flash(f"Matière '{matiere.nom}' modifiée avec succès.", 'success')
|
|
|
|
| 160 |
elif action.startswith('edit_matiere_'):
|
| 161 |
matiere_id = int(action.split('_')[-1])
|
| 162 |
matiere = Matiere.query.get_or_404(matiere_id)
|
| 163 |
+
matiere.nom = request.form.get(f'edit_nom_matiere_{matiere}')
|
| 164 |
try:
|
| 165 |
db.session.commit()
|
| 166 |
flash(f"Matière '{matiere.nom}' modifiée avec succès.", 'success')
|