dev #160

Merged
sora merged 97 commits from dev into master 2025-03-02 01:09:30 +01:00
Showing only changes of commit 58c6eaa868 - Show all commits

View File

@ -51,7 +51,7 @@ export function flight_get_data(flightId: string): Promise<FlightData[]> {
function groupByPair(flightData: FlightData[]): FlightData[][] { function groupByPair(flightData: FlightData[]): FlightData[][] {
const flightMap: { [key: string]: FlightData[] } = {}; const flightMap: { [key: string]: FlightData[] } = {};
flightData.forEach(flight => { flightData.forEach(flight => {
const key = `${flight.from}-${flight.to}`; const key = `${flight.from}-${flight.to}-${flight.std}`;
if (!flightMap[key]) if (!flightMap[key])
flightMap[key] = []; flightMap[key] = [];
flightMap[key].push(flight); flightMap[key].push(flight);