Skip to content

Commit 1ccc68e

Browse files
committed
fixes regression that broke d-scan formatting
1 parent dc84fc2 commit 1ccc68e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
build
44
dist
55
*.swp
6-
data/scans
6+
data/scans.db
77
data/current_scan_id.dat

‎cargoscanner.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def _add_type(name, count):
353353
continue
354354

355355
# aiming for format "PERSON'S NAME\tShipType\tdistance"
356-
if fmt_line.count("\t") > 2:
356+
if fmt_line.count("\t") > 1:
357357
_, item, _ = fmt_line.split("\t", 2)
358358
if _add_type(item.strip(), 1):
359359
continue

0 commit comments

Comments
 (0)