Skip to content

Commit

Permalink
Fix #6525: WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
git-user committed Nov 17, 2023
1 parent 015527c commit 862a545
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sirepo/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ async def api_importFile(self, simulation_type):
def _save_sim(data):
data.models.simulation.folder = req.folder
data.models.simulation.isExample = False
if hasattr(req.template, "copy_related_sims"):
return self._save_new_and_reply(
req,
req.template.copy_related_sims(data, qcall=self),
)
return self._save_new_and_reply(req, data)

if pkio.has_file_extension(req.filename, "json"):
Expand Down

0 comments on commit 862a545

Please sign in to comment.