Skip to content
Snippets Groups Projects
Verified Commit 7094cc87 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Directly save the current file of the automatic plan

parent c317604c
No related branches found
No related tags found
1 merge request!191Resolve "Automatically create a PDF file of the substitution plan"
Pipeline #25563 failed
...@@ -1201,7 +1201,8 @@ class AutomaticPlan(LiveDocument): ...@@ -1201,7 +1201,8 @@ class AutomaticPlan(LiveDocument):
file_object.refresh_from_db() file_object.refresh_from_db()
if result.status == SUCCESS and file_object.file: if result.status == SUCCESS and file_object.file:
self.last_update_triggered_manually = triggered_manually self.last_update_triggered_manually = triggered_manually
super().update(file_object.file.file) self.current_file.save(self.filename, file_object.file.file)
self.save()
@property @property
def filename(self) -> str: def filename(self) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment