Pārlūkot izejas kodu

Fix duplicate journeys (again)

master
Chris Smith 14 gadus atpakaļ
vecāks
revīzija
df3b1fe5a9

Binārs
code/ContextAnalyser/dist/ContextAnalyser.apk Parādīt failu


+ 1
- 1
code/ContextAnalyser/src/uk/co/md87/android/contextanalyser/DataHelper.java Parādīt failu

@@ -73,7 +73,7 @@ public class DataHelper {
73 73
             + "lat < %1$s + 0.005 and lon > %2$s - 0.01 and lon < %2$s + 0.01";
74 74
     private static final String JOURNEY_STEPS_QUERY = "journey = %1$s";
75 75
     private static final String JOURNEY_START_QUERY = "start = %1$s";
76
-    private static final String JOURNEY_BOTH_QUERY = JOURNEY_START_QUERY + " AND end = %1$s";
76
+    private static final String JOURNEY_BOTH_QUERY = JOURNEY_START_QUERY + " AND end = %2$s";
77 77
 
78 78
     private final SQLiteStatement insertLocationStatement, insertJourneyStatement,
79 79
             insertJourneyStepStatement, updateLocationStatement,

Notiek ielāde…
Atcelt
Saglabāt