Skip to content

Commit

Permalink
attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent committed Nov 21, 2023
1 parent 19fdd76 commit c3b371f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions store/neurostore/resources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ def update_or_create(cls, data, id=None, user=None, record=None, commit=True):
)
)
)
if LnCls._model is AnnotationAnalysis:
q = q.options(
joinedload(AnnotationAnalysis.analysis),
joinedload(AnnotationAnalysis.studyset_study).options(
joinedload(StudysetStudy.study)
),
)
v = q.first()
if v is None:
abort(400)
Expand Down

0 comments on commit c3b371f

Please sign in to comment.