Spaces:
Sleeping
Sleeping
Update services/report_data_handler.py
Browse files
services/report_data_handler.py
CHANGED
@@ -11,6 +11,7 @@ from config import (
|
|
11 |
)
|
12 |
import json # For handling JSON data
|
13 |
from typing import List, Dict, Any, Optional, Tuple
|
|
|
14 |
|
15 |
# It's good practice to configure the logger at the application entry point,
|
16 |
# but setting a default handler here prevents "No handler found" warnings.
|
@@ -24,6 +25,7 @@ def fetch_latest_agentic_analysis(org_urn: str) -> Tuple[Optional[pd.DataFrame],
|
|
24 |
"""
|
25 |
logger.info(f"Starting fetch_latest_agentic_analysis for org_urn: {org_urn}")
|
26 |
|
|
|
27 |
current_year = today.year
|
28 |
current_quarter = (today.month - 1) // 3 + 1
|
29 |
|
|
|
11 |
)
|
12 |
import json # For handling JSON data
|
13 |
from typing import List, Dict, Any, Optional, Tuple
|
14 |
+
from datetime import date
|
15 |
|
16 |
# It's good practice to configure the logger at the application entry point,
|
17 |
# but setting a default handler here prevents "No handler found" warnings.
|
|
|
25 |
"""
|
26 |
logger.info(f"Starting fetch_latest_agentic_analysis for org_urn: {org_urn}")
|
27 |
|
28 |
+
today = date.today()
|
29 |
current_year = today.year
|
30 |
current_quarter = (today.month - 1) // 3 + 1
|
31 |
|