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
|
||||
.pypirc
|
||||
|
||||
auth_state.json
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user