From 79c4b33bee99b39d66c04dab8da9f73723543a6e Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 13 Dec 2021 11:10:53 +0100 Subject: [PATCH] Fix: export zip photos --- app/scodoc/sco_trombino.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_trombino.py b/app/scodoc/sco_trombino.py index 84af34263..b5bfb6b52 100644 --- a/app/scodoc/sco_trombino.py +++ b/app/scodoc/sco_trombino.py @@ -229,7 +229,7 @@ def _trombino_zip(groups_infos): if code_nip: filename = code_nip + ".jpg" else: - filename = t["nom"] + "_" + t["prenom"] + "_" + t["etudid"] + ".jpg" + filename = f'{t["nom"]}_{t["prenom"]}_{t["etudid"]}.jpg' Z.writestr(filename, img) Z.close() size = data.tell()