| Server IP : 216.92.14.13 / Your IP : 216.73.217.126 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"))
dupe_id = "P97665868y5tn5"
# Remove person
db["persons"] = [p for p in db["persons"] if p["id"] != dupe_id]
print(f"Removed profile {dupe_id} (ryanbalton@gmail.com)")
# Remove assignments
before = len(db["assignments"])
db["assignments"] = [a for a in db["assignments"] if a.get("personId") != dupe_id]
print(f"Removed {before - len(db['assignments'])} assignment(s)")
# Verify remaining Balton
for p in db["persons"]:
if "balton" in p.get("lastName","").lower():
print(f" Remaining: {p['id']} {p['firstName']} {p['lastName']} email={p.get('email','')}")
json.dump(db, open("/home/rmlac2fmr/public_html/jn.com/ops/data/db.json", "w"), indent=2)
print("Done!")