Skip to content

Commit

Permalink
try session refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
maximemulder committed Jan 8, 2025
1 parent e713627 commit c7120e2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ def _run_nifti_insertion(self, nifti_file_path, json_file_path, bval_file_path=N
if insertion_process.returncode == 0:
log_verbose(self.env, f"run_nifti_insertion.py successfully executed for file {nifti_file_path}")
self.inserted_file_count += 1

# reset mri_upload to Inserting as run_nifti_insertion.py will set Inserting=False after execution
self.env.db.refresh(self.mri_upload)
self.mri_upload.inserting = True
self.env.db.commit()
else:
Expand Down

0 comments on commit c7120e2

Please sign in to comment.