chore: remove debug script

This commit is contained in:
LemonNexus 2026-02-09 17:12:58 +00:00
parent e8f0d7860e
commit c7afde4d41
1 changed files with 0 additions and 46 deletions

View File

@ -1,46 +0,0 @@
"""
Debug script to check Entropia Nexus API attachment data
"""
import requests
import json
def fetch_and_debug(endpoint: str, name: str):
url = f"https://api.entropianexus.com/{endpoint}"
print(f"\n{'='*60}")
print(f"Fetching {name} from {endpoint}")
print(f"{'='*60}")
try:
resp = requests.get(url, timeout=30)
resp.raise_for_status()
data = resp.json()
if isinstance(data, list):
print(f"Got {len(data)} items")
if len(data) > 0:
# Show first item structure
first = data[0]
print(f"\nFirst item ({first.get('Name', 'Unknown')}):")
print(json.dumps(first, indent=2))
# Check a few more items for patterns
print(f"\nChecking first 5 items for Properties structure:")
for i, item in enumerate(data[:5]):
props = item.get('Properties', {})
print(f"\n{i+1}. {item.get('Name')}:")
print(f" Properties keys: {list(props.keys())}")
if 'Economy' in props:
print(f" Economy: {props['Economy']}")
else:
print(f"Unexpected response type: {type(data)}")
print(json.dumps(data, indent=2)[:1000])
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
# Check all attachment endpoints
fetch_and_debug("weaponamplifiers", "Weapon Amplifiers")
fetch_and_debug("weaponvisionattachments", "Weapon Vision Attachments (Scopes/Sights)")
fetch_and_debug("absorbers", "Absorbers")