From c7afde4d41f790be5d23c7db85615470f4e9e27d Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Mon, 9 Feb 2026 17:12:58 +0000 Subject: [PATCH] chore: remove debug script --- debug_attachments.py | 46 -------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 debug_attachments.py diff --git a/debug_attachments.py b/debug_attachments.py deleted file mode 100644 index f87b215..0000000 --- a/debug_attachments.py +++ /dev/null @@ -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")