mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Aktualizacja scenerii; poprawki
This commit is contained in:
@@ -62,12 +62,12 @@ const filterStations = (station: Station, filters: Filter) => {
|
||||
if (station.online && station.statusID == 'ending' && filters['ending']) return returnMode;
|
||||
|
||||
if (station.online
|
||||
&& station.statusTimestamp != 0
|
||||
&& station.statusTimestamp > 0
|
||||
&& filters['onlineFromHours'] < 8
|
||||
&& station.statusTimestamp <= Date.now() + filters['onlineFromHours'] * 3600000)
|
||||
return returnMode;
|
||||
|
||||
if (filters['onlineFromHours'] > 0 && station.statusTimestamp == 0) return returnMode;
|
||||
if (filters['onlineFromHours'] > 0 && station.statusTimestamp <= 0) return returnMode;
|
||||
if (filters['onlineFromHours'] == 8 && station.statusID != 'no-limit') return returnMode;
|
||||
|
||||
if (station.statusID == 'ending' && filters['endingStatus']) return returnMode;
|
||||
|
||||
Reference in New Issue
Block a user