mirror of
https://github.com/mblanke/ThreatHunt.git
synced 2026-03-01 05:50:21 -05:00
feat: Add Playbook Manager, Saved Searches, and Timeline View components
- Implemented PlaybookManager for creating and managing investigation playbooks with templates. - Added SavedSearches component for managing bookmarked queries and recurring scans. - Introduced TimelineView for visualizing forensic event timelines with zoomable charts. - Enhanced backend processing with auto-queued jobs for dataset uploads and improved database concurrency. - Updated frontend components for better user experience and performance optimizations. - Documented changes in update log for future reference.
This commit is contained in:
10
_patch_inventory_stats2.py
Normal file
10
_patch_inventory_stats2.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from pathlib import Path
|
||||
p=Path(r'd:/Projects/Dev/ThreatHunt/backend/app/services/host_inventory.py')
|
||||
t=p.read_text(encoding='utf-8')
|
||||
needle=' "hosts_with_users": sum(1 for h in host_list if h[\'users\']),\n'
|
||||
if '"row_budget_per_dataset"' not in t:
|
||||
if needle not in t:
|
||||
raise SystemExit('needle not found')
|
||||
t=t.replace(needle, needle + ' "row_budget_per_dataset": settings.NETWORK_INVENTORY_MAX_ROWS_PER_DATASET,\n "sampled_mode": settings.NETWORK_INVENTORY_MAX_ROWS_PER_DATASET > 0,\n')
|
||||
p.write_text(t,encoding='utf-8')
|
||||
print('inserted inventory budget stats lines')
|
||||
Reference in New Issue
Block a user