This is an automated email from the ASF dual-hosted git repository.

gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git

commit cf01ff003ec008786848147cf188fec06c47fd9b
Author: Greg Stein <[email protected]>
AuthorDate: Fri Feb 20 10:29:12 2026 -0600

    quick hack to remap PID values from old to current
---
 v3/server/bin/create-election.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/v3/server/bin/create-election.py b/v3/server/bin/create-election.py
index bfd26e4..e95ce1c 100755
--- a/v3/server/bin/create-election.py
+++ b/v3/server/bin/create-election.py
@@ -126,8 +126,14 @@ def main(yaml_file):
         all_persons = pdb.list_persons()
         all_pids = {person.pid for person in all_persons}
 
+        ### hack for testing. map OLD pids to their newer equivalent
+        _REMAP = {
+            'iroh': 'wells',
+            }
+
         # Validate and add voters from record
         for pid in record:
+            pid = _REMAP.get(pid, pid)
             if pid not in all_pids:
                 raise ValueError(f'PID {pid} from record not found in person 
database')
             election.add_voter(pid)

Reply via email to