GopiBNA commited on
Commit
ef822cd
·
verified ·
1 Parent(s): a44aaae

Update engine/scraper.py

Browse files
Files changed (1) hide show
  1. 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
- # When the owner-card filter set is non-empty, only allow
887
- # Project Manager assignments for names that ALSO appear in
888
- # that curated set. This combines bracket-area="Project"
889
- # AND BNA's own curation, avoiding both over-inclusion
890
- # (Choquequirao case) and under-inclusion (Hombre Muerto).
891
- if role == "Project Manager" and owner_pm_norm:
892
- if nk not in owner_pm_norm:
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}"))