Bimba.git

commit 87761a9fd56c16e0feda8fc3c81abf3883a22ae1

Author: Adam Pioterek <adam.pioterek@protonmail.ch>

faster route graph generator

 app/src/main/java/ml/adamsprogs/bimba/models/Timetable.kt | 2 +-


diff --git a/app/src/main/java/ml/adamsprogs/bimba/models/Timetable.kt b/app/src/main/java/ml/adamsprogs/bimba/models/Timetable.kt
index 6929b64e17b633457ffab55423a8a65880281973..a33feb5486c9a061992e83551b40ed8c95096833 100644
--- a/app/src/main/java/ml/adamsprogs/bimba/models/Timetable.kt
+++ b/app/src/main/java/ml/adamsprogs/bimba/models/Timetable.kt
@@ -377,7 +377,7 @@     fun getTripGraphs(id: AgencyAndId): Array>, String>> {
         val trips = arrayOf(HashMap<String, HashMap<Int, Int>>(), HashMap())
         val headsigns = arrayOf("", "")
         val cursor = db.rawQuery("select trip_id, trip_headsign, direction_id, stop_id, stop_sequence " +
-                "from trips natural join stop_times " +
+                "from stop_times natural join trips " +
                 "where route_id = ?", arrayOf(id.id))
 
         while (cursor.moveToNext()) {