fix remove files

This commit is contained in:
Cayo Puigdefabregas 2023-07-25 15:54:24 +02:00
parent 74789d66d1
commit 33efa7ab75
1 changed files with 7 additions and 8 deletions

View File

@ -41,14 +41,13 @@ class UploadSnapshots:
self.json_wb = None
self.onlyfiles = []
with self.app.app_context():
self.get_user()
self.get_files()
for f in self.onlyfiles:
self.file_snapshot = f
self.open_snapshot()
self.build_snapshot()
self.remove_files()
self.get_user()
self.get_files()
for f in self.onlyfiles:
self.file_snapshot = f
self.open_snapshot()
self.build_snapshot()
self.remove_files()
def get_user(self):
"""Get datamodel of user."""