fix remove files
This commit is contained in:
parent
74789d66d1
commit
33efa7ab75
|
@ -41,14 +41,13 @@ class UploadSnapshots:
|
||||||
self.json_wb = None
|
self.json_wb = None
|
||||||
self.onlyfiles = []
|
self.onlyfiles = []
|
||||||
|
|
||||||
with self.app.app_context():
|
self.get_user()
|
||||||
self.get_user()
|
self.get_files()
|
||||||
self.get_files()
|
for f in self.onlyfiles:
|
||||||
for f in self.onlyfiles:
|
self.file_snapshot = f
|
||||||
self.file_snapshot = f
|
self.open_snapshot()
|
||||||
self.open_snapshot()
|
self.build_snapshot()
|
||||||
self.build_snapshot()
|
self.remove_files()
|
||||||
self.remove_files()
|
|
||||||
|
|
||||||
def get_user(self):
|
def get_user(self):
|
||||||
"""Get datamodel of user."""
|
"""Get datamodel of user."""
|
||||||
|
|
Reference in New Issue