Skip to content

Commit

Permalink
addressing @cassidysymons's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wasade committed Oct 27, 2022
1 parent d261d33 commit 373469b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions microsetta_private_api/admin/admin_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,9 @@ def delete_account(account_id, token_info):
samp_repo.scrub(account_id, source.id, sample.id)

surveys = sar_repo.list_answered_surveys(account_id, source.id)
if has_samples:
# if we have samples, we need to scrub survey / source
# free text
if has_samples or has_external:
# if we have samples or external surveys, we need to scrub
# survey / source free text
for survey_id in surveys:
sar_repo.scrub(account_id, source.id, survey_id)
src_repo.scrub(account_id, source.id)
Expand Down

0 comments on commit 373469b

Please sign in to comment.