MosswartOverlord/inventory-service/helpers.py
erik 25e5dd32a4 Remove unused scripts and add missing modules to inventory-service
Removed from git (moved to unused/inventoryservice locally):
- extract_*.py scripts (one-time enum extraction tools)
- init_db.py, debug_ratings.py, test_suitbuilder*.py
- Old JSON outputs superseded by comprehensive_enum_database_v2.json

Added previously untracked required files:
- helpers.py (shared enum state for suitbuilder)
- suitbuilder.py (equipment optimization router)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 15:47:51 +00:00

17 lines
No EOL
496 B
Python

"""
Shared helper functions for inventory service and suitbuilder.
This module contains utility functions that are used by both main.py and suitbuilder.py
to avoid circular imports.
"""
# This will be populated by main.py after loading
ENUM_MAPPINGS = None
def set_enum_mappings(mappings):
"""Set the enum mappings from main.py after loading."""
global ENUM_MAPPINGS
ENUM_MAPPINGS = mappings
def get_enum_mappings():
"""Get the loaded enum mappings."""
return ENUM_MAPPINGS