Skip to content

Commit

Permalink
Modify to get source name directly out of source instead of out of so…
Browse files Browse the repository at this point in the history
…urce.source_data
  • Loading branch information
AmandaBirmingham committed Apr 29, 2020
1 parent 5454711 commit 00dc58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microsetta_private_api/repo/admin_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def get_survey_metadata(self, sample_barcode, survey_template_id=None):
# TODO: This is my best understanding of how the data must be
# transformed to get the host_subject_id, needs verification that it
# generates the expected values for preexisting samples.
prehash = account_id + source.source_data.name.lower()
prehash = account_id + source.name.lower()
host_subject_id = sha512(prehash.encode()).hexdigest()

survey_answers_repo = SurveyAnswersRepo(self._transaction)
Expand Down

0 comments on commit 00dc58f

Please sign in to comment.