Spaces:
Runtime error
Runtime error
Update engine/scraper.py
Browse files- engine/scraper.py +7 -9
engine/scraper.py
CHANGED
|
@@ -883,15 +883,13 @@ class BNAScraper:
|
|
| 883 |
prev = already_assigned[nk]
|
| 884 |
decisions.append((name, pos, f"skip: already '{prev}', this row says '{role}'"))
|
| 885 |
continue
|
| 886 |
-
#
|
| 887 |
-
#
|
| 888 |
-
#
|
| 889 |
-
#
|
| 890 |
-
#
|
| 891 |
-
|
| 892 |
-
|
| 893 |
-
decisions.append((name, pos, "skip: bracket says Project Manager but not in owner-card"))
|
| 894 |
-
continue
|
| 895 |
already_assigned[nk] = role
|
| 896 |
fields.setdefault(f"manager::{role}", []).append(name)
|
| 897 |
decisions.append((name, pos, f"assigned: {role}"))
|
|
|
|
| 883 |
prev = already_assigned[nk]
|
| 884 |
decisions.append((name, pos, f"skip: already '{prev}', this row says '{role}'"))
|
| 885 |
continue
|
| 886 |
+
# Bracket parse is authoritative for Project Manager. The
|
| 887 |
+
# earlier owner-card filter excluded legitimate project
|
| 888 |
+
# managers because the regex-based extraction picked up
|
| 889 |
+
# wrong names from outside the owner card (Maricunga case).
|
| 890 |
+
# The bracket "(Managers - Project)" / "(Heads - Project)"
|
| 891 |
+
# comes from BNA's own curation per-contact, so trust it.
|
| 892 |
+
# owner_pm_norm is now informational only (logged earlier).
|
|
|
|
|
|
|
| 893 |
already_assigned[nk] = role
|
| 894 |
fields.setdefault(f"manager::{role}", []).append(name)
|
| 895 |
decisions.append((name, pos, f"assigned: {role}"))
|