From ff9b29d90e6106b085bfcf03f7ff9f0c5f3182ae Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 17 Jan 2026 22:23:26 -0500 Subject: [PATCH] [HOTFIX] Remove files from model_dump in scan --- .trunk/trunk.yaml | 18 +++++++++--------- backend/endpoints/sockets/scan.py | 10 ++++++++-- backend/handler/scan_handler.py | 8 +++++++- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index 9cb531096..d90f0818a 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -26,25 +26,25 @@ lint: - hadolint@2.14.0 - markdownlint@0.47.0 - eslint@9.39.2 - - actionlint@1.7.9 + - actionlint@1.7.10 - bandit@1.9.2 - black@25.12.0 - - checkov@3.2.495 + - checkov@3.2.497 - git-diff-check - isort@7.0.0 - mypy@1.19.1 - - osv-scanner@2.3.1 - - prettier@3.7.4: + - osv-scanner@2.3.2 + - prettier@3.8.0: packages: - - "@trivago/prettier-plugin-sort-imports@6.0.0" + - "@trivago/prettier-plugin-sort-imports@6.0.2" - "@vue/compiler-sfc@3.5.26" - - ruff@0.14.10 + - ruff@0.14.13 - shellcheck@0.11.0 - shfmt@3.6.0 - taplo@0.10.0 - - trivy@0.68.1 - - trufflehog@3.92.1 - - yamllint@1.37.1 + - trivy@0.68.2 + - trufflehog@3.92.5 + - yamllint@1.38.0 ignore: - linters: [ALL] paths: diff --git a/backend/endpoints/sockets/scan.py b/backend/endpoints/sockets/scan.py index 1be4585a2..a3cc6027d 100644 --- a/backend/endpoints/sockets/scan.py +++ b/backend/endpoints/sockets/scan.py @@ -335,7 +335,13 @@ async def _identify_rom( await socket_manager.emit( "scan:scanning_rom", SimpleRomSchema.from_orm_with_factory(_added_rom).model_dump( - exclude={"created_at", "updated_at", "rom_user"} + exclude={ + "created_at", + "updated_at", + "rom_user", + "last_modified", + "files", + } ), ) @@ -440,7 +446,7 @@ async def _identify_rom( await socket_manager.emit( "scan:scanning_rom", SimpleRomSchema.from_orm_with_factory(_added_rom).model_dump( - exclude={"created_at", "updated_at", "rom_user"} + exclude={"created_at", "updated_at", "rom_user", "last_modified", "files"} ), ) diff --git a/backend/handler/scan_handler.py b/backend/handler/scan_handler.py index 9572b0b00..6e1c7b26b 100644 --- a/backend/handler/scan_handler.py +++ b/backend/handler/scan_handler.py @@ -402,7 +402,13 @@ async def scan_rom( "scan:scanning_rom", { **SimpleRomSchema.from_orm_with_factory(_added_rom).model_dump( - exclude={"created_at", "updated_at", "rom_user"} + exclude={ + "created_at", + "updated_at", + "rom_user", + "last_modified", + "files", + } ), }, )