File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name = 'BioScan'
2- version = '2.12.0 '
2+ version = '2.12.1 '
33db_version = 11
Original file line number Diff line number Diff line change @@ -1789,8 +1789,10 @@ def get_unsold_data() -> int:
17891789 else :
17901790 data_cutoff_time = last_data_loss
17911791
1792- recent_scans : list [FloraScans ] = this .sql_session .scalars (select (FloraScans ).where (FloraScans .commander_id == this .commander .id )
1793- .where (FloraScans .scanned_at > data_cutoff_time ).where (FloraScans .count == 3 )).all ()
1792+ recent_scans = []
1793+ if data_cutoff_time :
1794+ recent_scans : list [FloraScans ] = this .sql_session .scalars (select (FloraScans ).where (FloraScans .commander_id == this .commander .id )
1795+ .where (FloraScans .scanned_at > data_cutoff_time ).where (FloraScans .count == 3 )).all ()
17941796
17951797 value = 0
17961798 if len (recent_scans ) > 0 :
You can’t perform that action at this time.
0 commit comments