no blinking on the dashboard

This commit is contained in:
2025-10-13 13:26:34 +02:00
parent 5800fb6e2c
commit ad4cf07585
3 changed files with 118 additions and 100 deletions

View File

@ -137,7 +137,10 @@ def parse_timeframes(tf_strings: list) -> dict:
code = ''
if unit == 'm':
code = f"{numeric_part}min"
elif unit in ['h', 'd', 'w']:
elif unit == 'w':
# --- FIX: Use uppercase 'W' for weeks to avoid deprecation warning ---
code = f"{numeric_part}W"
elif unit in ['h', 'd']:
code = f"{numeric_part}{unit}"
else:
code = tf_str