diff --git a/scanner.py b/scanner.py index ef37f8d..589533a 100644 --- a/scanner.py +++ b/scanner.py @@ -62,7 +62,8 @@ def run_scan(dept: str = None, workers: int = 5, login_delay: int = 3): }) scan_id = log_scan_start() - clear_links() # Fresh start for links each scan + if dept is None: + clear_links() # Full scan only — dept scans upsert without wiping other depts def on_progress(done, total, ip, result): from datetime import datetime