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>
This commit is contained in:
parent
8cae94d87d
commit
25e5dd32a4
15 changed files with 1865 additions and 58106 deletions
17
inventory-service/helpers.py
Normal file
17
inventory-service/helpers.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"""
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue