1
0
forked from ScoDoc/ScoDoc

Fix: export zip photos

This commit is contained in:
Emmanuel Viennet 2021-12-13 11:10:53 +01:00
parent 2244f29c33
commit 79c4b33bee

View File

@ -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()