1
0
forked from ScoDoc/ScoDoc

Fix: erreur si suppression de maquette inexistante

This commit is contained in:
Emmanuel Viennet 2022-07-17 17:26:56 +02:00
parent 4658de8c2f
commit 6d905882d6

View File

@ -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"]
) )
sco_etape_apogee.apo_csv_delete(info["archive_id"]) if info:
return flask.redirect(dest_url + "&head_message=Archive%20supprimée") 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%20inexistante")
def view_apo_csv(etape_apo="", semset_id="", format="html"): def view_apo_csv(etape_apo="", semset_id="", format="html"):