Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

fix: add missing imports for UUID and PermissionDeniedError

dextmorgn182056979b12
diff --git a/flowsint-api/alembic/versions/c7d1f0a92b3e_add_owner_id_to_flows.py b/flowsint-api/alembic/versions/c7d1f0a92b3e_add_owner_id_to_flows.py
index 99d8f8b7..6b3e7960 100644
--- a/flowsint-api/alembic/versions/c7d1f0a92b3e_add_owner_id_to_flows.py
+++ b/flowsint-api/alembic/versions/c7d1f0a92b3e_add_owner_id_to_flows.py
@@ -8,9 +8,8 @@ Create Date: 2026-08-23 00:00:00.000000
from typing import Sequence, Union
-from alembic import op
import sqlalchemy as sa
-
+from alembic import op
# revision identifiers, used by Alembic.
revision: str = "c7d1f0a92b3e"
diff --git a/flowsint-core/src/flowsint_core/core/repositories/flow_repository.py b/flowsint-core/src/flowsint_core/core/repositories/flow_repository.py
index 6f5d3613..4b0cc49f 100644
--- a/flowsint-core/src/flowsint_core/core/repositories/flow_repository.py
+++ b/flowsint-core/src/flowsint_core/core/repositories/flow_repository.py
@@ -1,6 +1,7 @@
"""Repository for Flow model."""
from typing import List, Optional
+from uuid import UUID
from sqlalchemy import or_
diff --git a/flowsint-core/src/flowsint_core/core/services/flow_service.py b/flowsint-core/src/flowsint_core/core/services/flow_service.py
index d1d72847..a997b370 100644
--- a/flowsint-core/src/flowsint_core/core/services/flow_service.py
+++ b/flowsint-core/src/flowsint_core/core/services/flow_service.py
@@ -16,7 +16,7 @@ from ..repositories import (
SketchRepository,
)
from .base import BaseService
-from .exceptions import NotFoundError
+from .exceptions import NotFoundError, PermissionDeniedError
class FlowService(BaseService):
diff --git a/flowsint-types/src/flowsint_types/social_account.py b/flowsint-types/src/flowsint_types/social_account.py
index 3830c298..b7dbc29c 100644
--- a/flowsint-types/src/flowsint_types/social_account.py
+++ b/flowsint-types/src/flowsint_types/social_account.py
@@ -94,7 +94,7 @@ class SocialAccount(FlowsintType):
self.id = self.username.value
else:
self.id = self.display_name or "unknown"
-
+
# Only modify nodeLabel if it isn't set
if not self.nodeLabel:
self.nodeLabel = self.id