forked from ScoDoc/ScoDoc
Fix #497 (API modimpl)
This commit is contained in:
parent
950c0826b7
commit
ad00f06663
@ -280,5 +280,5 @@ def moduleimpl(moduleimpl_id: int):
|
|||||||
query = ModuleImpl.query.filter_by(id=moduleimpl_id)
|
query = ModuleImpl.query.filter_by(id=moduleimpl_id)
|
||||||
if g.scodoc_dept:
|
if g.scodoc_dept:
|
||||||
query = query.join(FormSemestre).filter_by(dept_id=g.scodoc_dept_id)
|
query = query.join(FormSemestre).filter_by(dept_id=g.scodoc_dept_id)
|
||||||
modimpl = query.first_or_404()
|
modimpl: ModuleImpl = query.first_or_404()
|
||||||
return jsonify(modimpl.to_dict())
|
return jsonify(modimpl.to_dict(convert_objects=True))
|
||||||
|
@ -231,7 +231,7 @@ class BaseArchiver(object):
|
|||||||
log(f"creating archive: {archive_id}")
|
log(f"creating archive: {archive_id}")
|
||||||
try:
|
try:
|
||||||
scu.GSL.acquire()
|
scu.GSL.acquire()
|
||||||
os.mkdir(archive_id) # if exists, raises an OSError
|
os.mkdir(archive_id) # if exists, raises FileExistsError
|
||||||
finally:
|
finally:
|
||||||
scu.GSL.release()
|
scu.GSL.release()
|
||||||
self.store(archive_id, "_description.txt", description)
|
self.store(archive_id, "_description.txt", description)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
SCOVERSION = "9.3.40"
|
SCOVERSION = "9.3.41"
|
||||||
|
|
||||||
SCONAME = "ScoDoc"
|
SCONAME = "ScoDoc"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user