Remove deprecated app_new.py and consolidate main application logic into main.py
- Deleted `app_new.py`, which was previously the main entry point for the dashboard application, to streamline the codebase. - Consolidated the application initialization and callback registration logic into `main.py`, enhancing modularity and maintainability. - Updated the logging and error handling practices in `main.py` to ensure consistent application behavior and improved debugging capabilities. These changes simplify the application structure, aligning with project standards for modularity and maintainability.
This commit is contained in:
@@ -7,6 +7,7 @@ and trade data aggregation.
|
||||
|
||||
import re
|
||||
from typing import List, Tuple
|
||||
from utils.timeframe_utils import load_timeframe_options
|
||||
|
||||
from ..data_types import StandardizedTrade, OHLCVCandle
|
||||
|
||||
@@ -42,7 +43,7 @@ def validate_timeframe(timeframe: str) -> bool:
|
||||
Returns:
|
||||
True if supported, False otherwise
|
||||
"""
|
||||
supported = ['1s', '5s', '10s', '15s', '30s', '1m', '5m', '15m', '30m', '1h', '4h', '1d']
|
||||
supported = [item['value'] for item in load_timeframe_options()]
|
||||
return timeframe in supported
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user