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>
17 lines
No EOL
496 B
Python
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 |