Spaces:
Runtime error
Runtime error
Commit ·
b77c702
1
Parent(s): 4397c21
syntax error fix
Browse files- persistStorage.py +1 -1
persistStorage.py
CHANGED
|
@@ -33,6 +33,6 @@ def saveLog(message, level='info') -> None:
|
|
| 33 |
with scheduler.lock:
|
| 34 |
current_time = datetime.now(TIMEZONE_OBJ)
|
| 35 |
message = str(message)
|
| 36 |
-
JSON_DATASET_PATH = os.path.join(LOGS_DIR, f"{current_time.strftime(
|
| 37 |
data_dict = {"time":str(currrent_time), "level": level, "message": message}
|
| 38 |
append_dict_to_csv(JSON_DATASET_PATH, data_dict)
|
|
|
|
| 33 |
with scheduler.lock:
|
| 34 |
current_time = datetime.now(TIMEZONE_OBJ)
|
| 35 |
message = str(message)
|
| 36 |
+
JSON_DATASET_PATH = os.path.join(LOGS_DIR, f"{current_time.strftime('%Y-%m')}.csv")
|
| 37 |
data_dict = {"time":str(currrent_time), "level": level, "message": message}
|
| 38 |
append_dict_to_csv(JSON_DATASET_PATH, data_dict)
|