Spaces:
Sleeping
Sleeping
Uncommented dataset_service one more. Time for real kpi extraction...
Browse files
api/services/dataset_service.py
CHANGED
|
@@ -31,13 +31,13 @@ WORKING_DIR = DATA_PATH
|
|
| 31 |
|
| 32 |
def extract_kpis():
|
| 33 |
|
| 34 |
-
with open(MOCK_KPIS_PATH, "r", encoding="utf-8") as f:
|
| 35 |
-
|
| 36 |
|
| 37 |
-
with open(KPIS_PATH, "w", encoding="utf-8") as f:
|
| 38 |
-
|
| 39 |
|
| 40 |
-
return 0
|
| 41 |
|
| 42 |
# Configuration globale des graphes matplotlib
|
| 43 |
matplotlib.rcParams.update({
|
|
|
|
| 31 |
|
| 32 |
def extract_kpis():
|
| 33 |
|
| 34 |
+
# with open(MOCK_KPIS_PATH, "r", encoding="utf-8") as f:
|
| 35 |
+
# data = json.load(f)
|
| 36 |
|
| 37 |
+
# with open(KPIS_PATH, "w", encoding="utf-8") as f:
|
| 38 |
+
# json.dump(data, f, ensure_ascii=False, indent=2)
|
| 39 |
|
| 40 |
+
# return 0
|
| 41 |
|
| 42 |
# Configuration globale des graphes matplotlib
|
| 43 |
matplotlib.rcParams.update({
|