Skip to content

Commit

Permalink
Merge pull request #1887 from uwcirg/hotfix/avoid-duplicate-qb-by-int…
Browse files Browse the repository at this point in the history
…ervention

Safeguard intervention associated qbs from duplicate inclusion
ivan-c authored Feb 21, 2018
2 parents c511e67 + a5cf5e8 commit a09ef5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portal/models/questionnaire_bank.py
Original file line number Diff line number Diff line change
@@ -298,8 +298,8 @@ def validate_classification_count(qbs):
# move to site persistence for QB to user mappings.
check_func = observation_check("biopsy", 'true')
if check_func(intervention=intervention, user=user):

results.append(qb)
if qb not in results:
results.append(qb)

validate_classification_count(results)
return results

0 comments on commit a09ef5a

Please sign in to comment.