Fix #497 (API modimpl)

This commit is contained in:
Emmanuel Viennet 2022-09-21 11:35:02 +02:00
parent 950c0826b7
commit ad00f06663
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.3.40"
SCOVERSION = "9.3.41"
SCONAME = "ScoDoc"