Skip to content

Commit 1f74c99

Browse files
committed
Change scan type order
1 parent eedd366 commit 1f74c99

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/ExploData/explo_data/db.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ def migrate(engine: Engine) -> bool:
515515
add_column(engine, 'planets', Column('geo_signals', Integer(), nullable=False, server_default=text('0')))
516516
if int(version['value']) < 7:
517517
run_query(engine, 'DELETE FROM journal_log')
518+
run_query(engine, 'UPDATE planet_status SET scan_state=0 WHERE scan_state<4')
518519
add_column(engine, 'star_status', Column('scan_state', Integer(), nullable=False, server_default=text('0')))
519520
affix_schemas(engine) # This should be run on the latest migration
520521
except ValueError as ex:

src/ExploData/explo_data/journal_parse.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,14 @@ def add_scan(self, entry: Mapping[str, Any]) -> None:
440440

441441
def get_scan_type(scan: str) -> int:
442442
match scan:
443-
case 'AutoScan':
443+
case 'NavBeaconDetail':
444444
return 1
445+
case 'AutoScan':
446+
return 2
447+
case 'Basic':
448+
return 3
445449
case 'Detailed':
446450
return 4
447-
case 'NavBeaconDetail':
448-
return 3
449-
case 'Basic':
450-
return 2
451451
case _:
452452
return 0
453453

0 commit comments

Comments
 (0)