Skip to content

Commit

Permalink
Remove manual query for ModalitiesInStudy for now
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack authored Aug 14, 2023
1 parent 396f19f commit 67a84e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
- Split messages into toasts (client only) and messages from server (using Bootstrap alerts)
- Rewrite Celery unit tests using the official test helpers
- Check why this dicomweb test takes so long
- Use pynetdicom SCPs instead of Orthancs in integrations tests
-- Find those tests by looking for "setup_orthancs" fixture

## High Priority

Expand Down
8 changes: 4 additions & 4 deletions adit/core/utils/dicom_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ def _handle_found_studies(
# TODO: I guess this won't work as we are in the middle of a C-FIND request (we
# are using generators now) and we can't do another C-FIND request here.
# But we could use a new Connector instance for this. Fix this later.
if "ModalitiesInStudy" not in result:
result.ModalitiesInStudy = self._fetch_study_modalities(
result.PatientID, result.StudyInstanceUID
)
# if "ModalitiesInStudy" not in result:
# result.ModalitiesInStudy = self._fetch_study_modalities(
# result.PatientID, result.StudyInstanceUID
# )

modality_query = query.ModalitiesInStudy
if modality_query:
Expand Down

0 comments on commit 67a84e9

Please sign in to comment.