deploy: batch update 2 file(s)
Browse files
report_generation/config.py
CHANGED
|
@@ -97,6 +97,9 @@ class ReportConfig:
|
|
| 97 |
organization_name: str = "DetectifAI Security System"
|
| 98 |
report_classification: str = "CONFIDENTIAL"
|
| 99 |
|
|
|
|
|
|
|
|
|
|
| 100 |
# MongoDB connection (uses existing DetectifAI config)
|
| 101 |
use_database: bool = True
|
| 102 |
|
|
|
|
| 97 |
organization_name: str = "DetectifAI Security System"
|
| 98 |
report_classification: str = "CONFIDENTIAL"
|
| 99 |
|
| 100 |
+
# Fallback/Deterministic mode
|
| 101 |
+
deterministic_narrative: bool = False
|
| 102 |
+
|
| 103 |
# MongoDB connection (uses existing DetectifAI config)
|
| 104 |
use_database: bool = True
|
| 105 |
|
report_generation/report_builder.py
CHANGED
|
@@ -53,7 +53,7 @@ def _format_report_timestamp(dt: datetime) -> str:
|
|
| 53 |
return 'N/A'
|
| 54 |
if dt.year == 1970:
|
| 55 |
# Treat as seconds-into-video timecode
|
| 56 |
-
total_seconds =
|
| 57 |
h = total_seconds // 3600
|
| 58 |
m = (total_seconds % 3600) // 60
|
| 59 |
s = total_seconds % 60
|
|
|
|
| 53 |
return 'N/A'
|
| 54 |
if dt.year == 1970:
|
| 55 |
# Treat as seconds-into-video timecode
|
| 56 |
+
total_seconds = (dt.day - 1) * 86400 + dt.hour * 3600 + dt.minute * 60 + dt.second
|
| 57 |
h = total_seconds // 3600
|
| 58 |
m = (total_seconds % 3600) // 60
|
| 59 |
s = total_seconds % 60
|