mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Set status on upload, edit, or delete
This commit is contained in:
parent
2d4559e4fe
commit
64dce7ed28
@ -422,6 +422,7 @@ class CorpusFile(db.Model):
|
||||
except:
|
||||
logger.warning('[ERROR] CorpusFile.delete')
|
||||
return
|
||||
self.corpus.status = 'unprepared'
|
||||
db.session.delete(self)
|
||||
db.session.commit()
|
||||
|
||||
@ -435,6 +436,8 @@ class CorpusFile(db.Model):
|
||||
text_node.set('publishing_year', str(self.publishing_year))
|
||||
text_node.set('title', self.title)
|
||||
element_tree.write(file)
|
||||
self.corpus.status = 'unprepared'
|
||||
db.session.commit()
|
||||
|
||||
|
||||
class Corpus(db.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user