From e9f9f0fe682e10533a7b2e3a60b739ece8dfa9c7 Mon Sep 17 00:00:00 2001 From: Armin Date: Tue, 16 Jul 2024 09:29:24 +0200 Subject: [PATCH] [RFR-1081] Fix min location count for upload request --- .../cyface/uploader/model/metadata/MeasurementMetaData.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/de/cyface/uploader/model/metadata/MeasurementMetaData.kt b/src/main/kotlin/de/cyface/uploader/model/metadata/MeasurementMetaData.kt index c841799..3ee4d50 100644 --- a/src/main/kotlin/de/cyface/uploader/model/metadata/MeasurementMetaData.kt +++ b/src/main/kotlin/de/cyface/uploader/model/metadata/MeasurementMetaData.kt @@ -70,9 +70,11 @@ data class MeasurementMetaData( private const val MINIMUM_TRACK_LENGTH = 0.0 /** - * The minimum valid amount of locations stored inside a measurement, or else skip the upload. + * The minimum valid amount of locations stored inside a measurement. + * + * This is used on the client-side, so we need to allow < 2 locations to be sent, the server decides skipping. */ - private const val MINIMUM_LOCATION_COUNT = 2L + private const val MINIMUM_LOCATION_COUNT = 0L } }