Debug für jsons gelöscht, 1Liner: wie viele Direct Reports wurden gefunden hinzugefügt.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -174,3 +174,4 @@ cython_debug/
|
|||||||
# PyPI configuration file
|
# PyPI configuration file
|
||||||
.pypirc
|
.pypirc
|
||||||
|
|
||||||
|
auth_state.json
|
||||||
|
|||||||
@@ -87,11 +87,8 @@ async def extract_relations_for_manager(manager_email: str) -> List[WorkingWithR
|
|||||||
working_json = collected.get("workingwith") or {}
|
working_json = collected.get("workingwith") or {}
|
||||||
|
|
||||||
manager_person = parse_person_from_organization_person(person_json)
|
manager_person = parse_person_from_organization_person(person_json)
|
||||||
print(manager_person)
|
|
||||||
working_with_persons = parse_workingwith_entries(working_json)
|
working_with_persons = parse_workingwith_entries(working_json)
|
||||||
print(working_with_persons)
|
|
||||||
directs_emails = parse_direct_emails_from_organization(org_json)
|
directs_emails = parse_direct_emails_from_organization(org_json)
|
||||||
print(directs_emails)
|
|
||||||
|
|
||||||
relations: List[WorkingWithRelation] = []
|
relations: List[WorkingWithRelation] = []
|
||||||
|
|
||||||
@@ -99,6 +96,7 @@ async def extract_relations_for_manager(manager_email: str) -> List[WorkingWithR
|
|||||||
for dest in working_with_persons:
|
for dest in working_with_persons:
|
||||||
relations.append(WorkingWithRelation(source=manager_person, destination=dest))
|
relations.append(WorkingWithRelation(source=manager_person, destination=dest))
|
||||||
|
|
||||||
|
print("Found directs: ", len(directs_emails))
|
||||||
# Für alle Directs ebenfalls WorkingWith holen
|
# Für alle Directs ebenfalls WorkingWith holen
|
||||||
for direct_email in directs_emails:
|
for direct_email in directs_emails:
|
||||||
collected_direct = await _open_profile_and_collect(page, direct_email)
|
collected_direct = await _open_profile_and_collect(page, direct_email)
|
||||||
|
|||||||
Reference in New Issue
Block a user