feat: Add new profile and time period placeholders in placeholder_resolver.py
- 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.
This commit is contained in:
1 parent
e9e094c6a4
commit
2ea5f905c4
9 files changed
+1233
-68
No files matched your search
@@ -13,6 +13,12 @@ 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',
|
||||
@@ -23,4 +29,10 @@ __all__ = [
|
||||
'body_extras',
|
||||
'activity_metrics',
|
||||
'activity_session_insights',
|
||||
'schlaf_erholung',
|
||||
'vitalwerte',
|
||||
'profil_zeitraum',
|
||||
'phase_0b_meta_scores',
|
||||
'phase_0b_ziele_fokus',
|
||||
'korrelationen',
|
||||
]
|
||||
Reference in new issue
Block a user