Skip to content

Commit

Permalink
Fixing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
galvana committed Jan 11, 2025
1 parent 729e32b commit e06bb4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/fides/services/privacy_request/privacy_request_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,6 @@
send_verification_code_to_user,
)

OPTIONAL_FIELDS = [
"id",
"external_id",
"started_processing_at",
"finished_processing_at",
"consent_preferences",
"property_id",
"source",
]


class PrivacyRequestError(Exception):
"""Base exception for privacy request operations."""
Expand Down Expand Up @@ -151,6 +141,16 @@ def create_privacy_request(
authenticated,
)

OPTIONAL_FIELDS = [
"id",
"external_id",
"started_processing_at",
"finished_processing_at",
"consent_preferences",
"property_id",
"source",
]

for field in OPTIONAL_FIELDS:
attr = getattr(privacy_request_data, field)
if attr is not None:
Expand Down
2 changes: 1 addition & 1 deletion tests/ops/service/connectors/test_base_email_connector.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from fides.api.schemas.messaging.messaging import MessagingServiceType
from fides.api.service.connectors.base_email_connector import (
from fides.api.service.messaging.message_dispatch_service import (
get_email_messaging_config_service_type,
)

Expand Down

0 comments on commit e06bb4a

Please sign in to comment.