Skip to content

Commit 5e8ecf2

Browse files
committed
fix(tui): correct _phase_progress return type from tuple[int,float] to int
Also normalize lone lowercase add_log_entry('info', ...) to 'INFO'.
1 parent 9972afc commit 5e8ecf2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend/discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ def report_readiness(interfaces, routes, subnets):
839839
print("NetDocIT Environment Discovery Engine")
840840
print("=" * 40)
841841

842-
add_log_entry("info", "starting automated network discovery", "scanner")
842+
add_log_entry("INFO", "starting automated network discovery", "Scanner")
843843
discovery = discover_all()
844844

845845
print(f"Interfaces Detected: {len(discovery['interfaces'])}")

src/presentation/tui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _live_summary_line(self):
150150
f"sort: {self.live_scan_sort_mode} | filter: {self.live_scan_filter_mode}"
151151
)
152152

153-
def _phase_progress(self) -> tuple[int, float]:
153+
def _phase_progress(self) -> int:
154154
phase_map = {
155155
"starting": 5, "icmp_ping_sweep": 30, "tcp_port_scan": 60,
156156
"host_enrichment": 85, "completed": 100,

0 commit comments

Comments
 (0)