Skip to content

Commit

Permalink
remove unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Dec 12, 2023
1 parent 9906a24 commit 6adff88
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions edc_consent/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from django.apps import apps as django_apps
from django.conf import settings
from django.db import models
from edc_sites.get_countries import get_countries

from edc_consent import site_consents
from edc_consent.site_consents import SiteConsentError
Expand Down Expand Up @@ -89,13 +88,3 @@ def values_as_string(*values) -> str | None:
def get_remove_patient_names_from_countries() -> list[str]:
"""Returns a list of country names."""
return getattr(settings, "EDC_CONSENT_REMOVE_PATIENT_NAMES_FROM_COUNTRIES", [])


def get_site_ids_with_pii_perms(all_sites) -> list[int]:
site_ids = []
countries_with_pii_perms = [
c for c in get_countries() if c not in get_remove_patient_names_from_countries()
]
for country in countries_with_pii_perms:
site_ids.extend([s.site_id for s in all_sites.get(country)])
return site_ids

0 comments on commit 6adff88

Please sign in to comment.