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)
|
||||
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))
|
||||
|
@ -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)
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
SCOVERSION = "9.3.40"
|
||||
SCOVERSION = "9.3.41"
|
||||
|
||||
SCONAME = "ScoDoc"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user