- Introduced functions to retrieve profile name, age, height, and gender for better placeholder resolution. - Added functions for displaying current date and time period labels (last 7, 30, and 90 days). - Updated PLACEHOLDER_MAP to utilize new functions for improved readability and maintainability. - Enhanced placeholder registrations in __init__.py to include new modules for sleep, vital metrics, and profile time periods. These changes enhance the flexibility and functionality of the placeholder system, allowing for more dynamic content generation.
39 lines
960 B
Python
39 lines
960 B
Python
"""
|
|
Placeholder Registrations Package
|
|
|
|
Auto-imports all placeholder registrations to populate the global registry.
|
|
"""
|
|
|
|
# Import all registration modules to trigger auto-registration
|
|
from . import nutrition_part_a
|
|
from . import nutrition_part_b
|
|
from . import nutrition_part_c
|
|
from . import nutrition_score
|
|
from . import body_metrics
|
|
from . import body_extras
|
|
from . import activity_metrics
|
|
from . import activity_session_insights
|
|
from . import schlaf_erholung
|
|
from . import vitalwerte
|
|
from . import profil_zeitraum
|
|
from . import phase_0b_meta_scores
|
|
from . import phase_0b_ziele_fokus
|
|
from . import korrelationen
|
|
|
|
__all__ = [
|
|
'nutrition_part_a',
|
|
'nutrition_part_b',
|
|
'nutrition_part_c',
|
|
'nutrition_score',
|
|
'body_metrics',
|
|
'body_extras',
|
|
'activity_metrics',
|
|
'activity_session_insights',
|
|
'schlaf_erholung',
|
|
'vitalwerte',
|
|
'profil_zeitraum',
|
|
'phase_0b_meta_scores',
|
|
'phase_0b_ziele_fokus',
|
|
'korrelationen',
|
|
]
|