Skip to content

Commit

Permalink
Merge pull request #279 from ttngu207/datajoint_pipeline_pyrat
Browse files Browse the repository at this point in the history
update food restriction procedure name
  • Loading branch information
JaerongA authored Nov 9, 2023
2 parents f35b95c + 3db1a97 commit e987cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aeon/dj_pipeline/subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class SubjectReferenceWeight(dj.Manual):
def get_reference_weight(cls, subject_name):
subj_key = {"subject": subject_name}

food_restrict_query = SubjectProcedure & subj_key & "procedure_name = 'A99 - food restriction'"
food_restrict_query = SubjectProcedure & subj_key & "procedure_name = 'R02 - food restriction'"
if food_restrict_query:
ref_date = food_restrict_query.fetch("procedure_date", order_by="procedure_date DESC", limit=1)[
0
Expand Down

0 comments on commit e987cba

Please sign in to comment.