no blinking on the dashboard
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user