Two bugs in the abort mechanism: 1. POST /api/scan/stop only set state._scan_abort (M365/file abort event) but never touched state._google_scan_abort. Now sets both. 2. _check_abort() inside _run_google_scan imported gdpr_scanner._scan_abort (= state._scan_abort, the M365 event) instead of using the module-level _scan_abort alias (= state._google_scan_abort). This meant the dedicated /api/google/scan/cancel endpoint — which correctly sets _google_scan_abort — was silently ignored by the scan loop. Fixed to use the module-level alias consistently. Also aligned the end-of-scan checkpoint-clear check.
This commit is contained in:
1 parent
7ffd8370f4
commit
c820d6f6db
8 files changed
+28
-3
No files matched your search
@@ -577,6 +577,8 @@
|
||||
"m365_badge_emails": "email",
|
||||
"m365_badge_phones": "phone",
|
||||
"m365_opt_min_cpr_hint": "Files with fewer distinct CPR numbers than this threshold are not reported. Set to 2 to avoid false positives when students have their own CPR in documents.",
|
||||
"m365_opt_cpr_only": "CPR-only mode",
|
||||
"m365_opt_cpr_only_hint": "Only flag files that contain CPR numbers. Files with only email addresses, phone numbers, detected faces, or EXIF metadata are skipped.",
|
||||
"m365_opt_ocr_lang": "OCR language",
|
||||
"m365_opt_ocr_lang_hint": "Tesseract language pack(s) used when scanning scanned PDFs and images. Language packs must be installed on the server (e.g. tesseract-ocr-dan). Multiple packs: dan+eng.",
|
||||
"m365_filter_photo_only": "📷 Photos / biometric",
|
||||
|
||||
Reference in new issue
Block a user