From 642117aae883532801410ffb12d4e96303981a0b Mon Sep 17 00:00:00 2001 From: Frank Conrads Date: Mon, 2 Feb 2026 13:07:11 +0100 Subject: [PATCH] =?UTF-8?q?Debug=20f=C3=BCr=20jsons=20gel=C3=B6scht,=201Li?= =?UTF-8?q?ner:=20wie=20viele=20Direct=20Reports=20wurden=20gefunden=20hin?= =?UTF-8?q?zugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + app/extractor.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 36b13f1..7d4ee80 100644 --- a/.gitignore +++ b/.gitignore @@ -174,3 +174,4 @@ cython_debug/ # PyPI configuration file .pypirc +auth_state.json diff --git a/app/extractor.py b/app/extractor.py index 80fe9ed..2703e91 100644 --- a/app/extractor.py +++ b/app/extractor.py @@ -87,18 +87,16 @@ async def extract_relations_for_manager(manager_email: str) -> List[WorkingWithR working_json = collected.get("workingwith") or {} manager_person = parse_person_from_organization_person(person_json) - print(manager_person) working_with_persons = parse_workingwith_entries(working_json) - print(working_with_persons) directs_emails = parse_direct_emails_from_organization(org_json) - print(directs_emails) - + relations: List[WorkingWithRelation] = [] # Manager -> WorkingWith for dest in working_with_persons: relations.append(WorkingWithRelation(source=manager_person, destination=dest)) + print("Found directs: ", len(directs_emails)) # Für alle Directs ebenfalls WorkingWith holen for direct_email in directs_emails: collected_direct = await _open_profile_and_collect(page, direct_email)