aboutsummaryrefslogtreecommitdiff
path: root/shared/src
diff options
context:
space:
mode:
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt16
1 files changed, 0 insertions, 16 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt
index 82168da..b60a034 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt
@@ -17,7 +17,6 @@
*/
package mx.trackermap.TrackerMap.controllers
-import android.util.Log
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.flow.MutableStateFlow
@@ -61,10 +60,6 @@ class ReportController(
}
val (currentDate, previousDate) = ReportDates.getDates(reportPeriod)
- Log.d("UnitReportsVM", "Current report type: $reportType")
- Log.d("UnitReportsVM", "Current report period: $reportType")
- Log.d("UnitReportsVM", "Current date:${currentDate}")
- Log.d("UnitReportsVM", "Previous date:${previousDate}")
if (!xlsx) {
reportFlow.value = Report.LoadingReport
@@ -84,15 +79,11 @@ class ReportController(
to: String,
xlsx: Boolean
) {
- Log.d("UnitReportsVM", "Fetching positions")
-
if (!xlsx) {
val result = reportsApi.reportsRouteGet(from, to, deviceId)
- Log.d("UnitReportsVM", "Positions report: $result")
reportFlow.value = Report.PositionsReport(result)
} else {
val result = reportsApi.reportsRouteGetXlsx(from, to, deviceId)
- Log.d("UnitReportsVM", "Positions report: $result")
reportFlow.value = Report.XlsxReport(result)
}
@@ -105,7 +96,6 @@ class ReportController(
types: List<EventInformation.Type>,
xlsx: Boolean
) {
- Log.d("UnitReportsVM", "Fetching events")
if (!xlsx) {
val positionsResult = reportsApi.reportsRouteGet(from, to, deviceId)
@@ -123,14 +113,12 @@ class ReportController(
))
}
- Log.d("UnitReportsVM", "Events report: $result")
reportFlow.value = Report.EventsReport(result.toTypedArray())
} else {
val result = reportsApi.reportsEventsGetXlsx(
from, to, EventInformation.reportTypesToStrings(types), deviceId
)
- Log.d("UnitReportsVM", "Events report: $result")
reportFlow.value = Report.XlsxReport(result)
}
}
@@ -141,15 +129,11 @@ class ReportController(
to: String,
xlsx: Boolean
) {
- Log.d("UnitReportsVM", "Fetching stops")
-
if (!xlsx) {
val result = reportsApi.reportsStopsGet(from, to, deviceId)
- Log.d("UnitReportsVM", "Stops report: $result")
reportFlow.value = Report.StopsReport(result)
} else {
val result = reportsApi.reportsStopsGetXlsx(from, to, deviceId)
- Log.d("UnitReportsVM", "Stops report: $result")
reportFlow.value = Report.XlsxReport(result)
}