| Server IP : 216.92.14.13 / Your IP : 216.73.216.171 Web Server : Apache System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : rmlac2fmr ( 1040637) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/home/rmlac2fmr/ |
Upload File : |
import json
db = json.load(open("/home/rmlac2fmr/public_html/jn.com/ops/data/db.json"))
batch4 = [
("Deb", "Cavanaugh", "debcav@aol.com"),
("Marc", "Bloomgarden", "marc@zoomari.com"),
("Dean", "Brown", "dbrown9353@gmail.com"),
("Matt", "Nowak", "mnowak@erols.com"),
("Len", "Applefeld", "len.applefeld@gmail.com"),
("Karl", "Bontrager", "karl.bontrager@gmail.com"),
("TJ", "Rosepink", "tjrosepink@yahoo.com"),
("Samantha", "Seymour", "alexseymour1125@outlook.com"),
("Azizeh", "Isa", "brooklynny323@gmail.com"),
("Jay", "Hall", "jaybhall@jaybirdsco.com"),
("Paul", "Woodson", "ptwoodson@gmail.com"),
]
print("=== Batch 4 Profile Verification ===\n")
print(f"{'Expected Name':<25} {'DB ID':<20} {'DB Name':<25} {'DB Email':<35} {'MATCH?'}")
print("-" * 130)
for first, last, email in batch4:
# Find by email first
by_email = [p for p in db["persons"] if p.get("email","").lower().strip() == email.lower()]
# Find by name
by_name = [p for p in db["persons"] if last.lower() in p.get("lastName","").lower() and first.lower()[:3] in p.get("firstName","").lower()]
if by_email:
p = by_email[0]
name_match = last.lower() in p["lastName"].lower() and first.lower()[:3] in p["firstName"].lower()
status = "✓ OK" if name_match else f"⚠ WRONG NAME — email says {p['firstName']} {p['lastName']}"
print(f"{first} {last:<20} {p['id']:<20} {p['firstName']} {p['lastName']:<20} {p['email']:<35} {status}")
elif by_name:
p = by_name[0]
print(f"{first} {last:<20} {p['id']:<20} {p['firstName']} {p['lastName']:<20} {p.get('email',''):<35} ✓ (by name, diff email)")
else:
print(f"{first} {last:<20} {'NOT FOUND':<20}")
# Now check if any IDs are shared/crossed
print("\n=== Checking for ID collisions ===")
ids = {}
for p in db["persons"]:
if p["id"] in ids:
print(f"⚠ DUPLICATE ID: {p['id']}")
print(f" 1: {ids[p['id']]['firstName']} {ids[p['id']]['lastName']} {ids[p['id']].get('email','')}")
print(f" 2: {p['firstName']} {p['lastName']} {p.get('email','')}")
else:
ids[p["id"]] = p
# Check the specific Jay Hall / Samantha Seymour issue
print("\n=== Jay Hall / Samantha Seymour Investigation ===")
jay = [p for p in db["persons"] if "hall" in p.get("lastName","").lower() and "jay" in p.get("firstName","").lower()]
sam = [p for p in db["persons"] if "seymour" in p.get("lastName","").lower()]
for p in jay:
print(f"Jay Hall: id={p['id']} email={p.get('email','')}")
for p in sam:
print(f"Seymour: id={p['id']} firstName={p['firstName']} lastName={p['lastName']} email={p.get('email','')}")
# Check if they're adjacent in the persons array (suggesting ID collision from bulk import)
for i, p in enumerate(db["persons"]):
if "hall" in p.get("lastName","").lower() and "jay" in p.get("firstName","").lower():
print(f"\nJay Hall is at index {i}")
if i > 0: print(f" Before: {db['persons'][i-1]['firstName']} {db['persons'][i-1]['lastName']} id={db['persons'][i-1]['id']}")
if i < len(db["persons"])-1: print(f" After: {db['persons'][i+1]['firstName']} {db['persons'][i+1]['lastName']} id={db['persons'][i+1]['id']}")
if "seymour" in p.get("lastName","").lower():
print(f"\nSeymour is at index {i}")
if i > 0: print(f" Before: {db['persons'][i-1]['firstName']} {db['persons'][i-1]['lastName']} id={db['persons'][i-1]['id']}")
if i < len(db["persons"])-1: print(f" After: {db['persons'][i+1]['firstName']} {db['persons'][i+1]['lastName']} id={db['persons'][i+1]['id']}")