Skip to content

Commit

Permalink
make health check account for old screens
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebPena committed Dec 10, 2024
1 parent 4a7050f commit 177f502
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions integrations/management/commands/health_check.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from typing import Optional
from django.core.management.base import BaseCommand
from django.conf import settings
from decouple import config
from hubspot import HubSpot
from hubspot.crm.contacts.exceptions import ForbiddenException
from django.db.models import Q
from authentication.models import User
from integrations.models import Link
from programs.models import Navigator, Program, TranslationOverride, UrgentNeed
Expand Down Expand Up @@ -57,13 +55,7 @@ def _cant_read_hubspot(self) -> bool:
return False

def _no_pii_in_db(self) -> bool:
users = User.objects.filter(is_staff=False).filter(
Q(first_name__isnull=False)
| Q(last_name__isnull=False)
| Q(cell__isnull=False)
| Q(email__isnull=False)
| Q(external_id__isnull=True)
)
users = User.objects.filter(is_staff=False).filter(external_id__isnull=True)

if len(users) > 0:
return False
Expand Down

0 comments on commit 177f502

Please sign in to comment.