diff --git a/app/api/formations.py b/app/api/formations.py index e87f9941ff..002ce7392a 100644 --- a/app/api/formations.py +++ b/app/api/formations.py @@ -280,5 +280,5 @@ def moduleimpl(moduleimpl_id: int): query = ModuleImpl.query.filter_by(id=moduleimpl_id) if g.scodoc_dept: query = query.join(FormSemestre).filter_by(dept_id=g.scodoc_dept_id) - modimpl = query.first_or_404() - return jsonify(modimpl.to_dict()) + modimpl: ModuleImpl = query.first_or_404() + return jsonify(modimpl.to_dict(convert_objects=True)) diff --git a/app/scodoc/sco_archives.py b/app/scodoc/sco_archives.py index ac7955785c..71acd8159e 100644 --- a/app/scodoc/sco_archives.py +++ b/app/scodoc/sco_archives.py @@ -231,7 +231,7 @@ class BaseArchiver(object): log(f"creating archive: {archive_id}") try: scu.GSL.acquire() - os.mkdir(archive_id) # if exists, raises an OSError + os.mkdir(archive_id) # if exists, raises FileExistsError finally: scu.GSL.release() self.store(archive_id, "_description.txt", description) diff --git a/sco_version.py b/sco_version.py index ed1190cdf2..9687e7aeb8 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.3.40" +SCOVERSION = "9.3.41" SCONAME = "ScoDoc"