forked from ScoDoc/ScoDoc
Fix CLI flask delete-dept -f
This commit is contained in:
parent
e0188ebc2d
commit
1dfe754793
@ -412,6 +412,7 @@ def delete_dept(dept, force=False): # delete-dept
|
|||||||
from app.scodoc import notesdb as ndb
|
from app.scodoc import notesdb as ndb
|
||||||
from app.scodoc import sco_dept
|
from app.scodoc import sco_dept
|
||||||
|
|
||||||
|
msg = ""
|
||||||
db.reflect()
|
db.reflect()
|
||||||
ndb.open_db_connection()
|
ndb.open_db_connection()
|
||||||
d = models.Departement.query.filter_by(acronym=dept).first()
|
d = models.Departement.query.filter_by(acronym=dept).first()
|
||||||
|
Loading…
Reference in New Issue
Block a user