Fix: erreur si suppression de maquette inexistante
This commit is contained in:
parent
4658de8c2f
commit
6d905882d6
@ -658,8 +658,10 @@ def view_apo_csv_delete(etape_apo="", semset_id="", dialog_confirmed=False):
|
|||||||
info = sco_etape_apogee.apo_csv_get_archive(
|
info = sco_etape_apogee.apo_csv_get_archive(
|
||||||
etape_apo, semset["annee_scolaire"], semset["sem_id"]
|
etape_apo, semset["annee_scolaire"], semset["sem_id"]
|
||||||
)
|
)
|
||||||
|
if info:
|
||||||
sco_etape_apogee.apo_csv_delete(info["archive_id"])
|
sco_etape_apogee.apo_csv_delete(info["archive_id"])
|
||||||
return flask.redirect(dest_url + "&head_message=Archive%20supprimée")
|
return flask.redirect(dest_url + "&head_message=Archive%20supprimée")
|
||||||
|
return flask.redirect(dest_url + "&head_message=Archive%20inexistante")
|
||||||
|
|
||||||
|
|
||||||
def view_apo_csv(etape_apo="", semset_id="", format="html"):
|
def view_apo_csv(etape_apo="", semset_id="", format="html"):
|
||||||
|
Loading…
Reference in New Issue
Block a user