aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-03-02 00:18:30 -0600
committerIván Ávalos <avalos@disroot.org>2022-03-02 00:18:30 -0600
commit440399490ec8874ed5295ca6b5770c94d47d4f3d (patch)
tree1538e563438b551a62d9fad8fe39e6bd36af7948 /shared/src/commonMain
parent7522eaa1cf95820717f6d91a8b5879f5e14cfae2 (diff)
parent9b8eee4362c368e682bfe18d5cef44d6b9d109bf (diff)
downloadetbsa-trackermap-mobile-440399490ec8874ed5295ca6b5770c94d47d4f3d.tar.gz
etbsa-trackermap-mobile-440399490ec8874ed5295ca6b5770c94d47d4f3d.tar.bz2
etbsa-trackermap-mobile-440399490ec8874ed5295ca6b5770c94d47d4f3d.zip
Merged 'main' from upstream
Diffstat (limited to 'shared/src/commonMain')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt6
1 files changed, 3 insertions, 3 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 b2e97e6..29c4229 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt
@@ -49,7 +49,7 @@ class ReportController(
val reportFlow: MutableStateFlow<Report> = MutableStateFlow(Report.LoadingReport)
- fun fetchReport(
+ suspend fun fetchReport(
deviceId: Int,
reportType: ReportType?,
reportPeriod: ReportDates.ReportPeriod?,
@@ -65,13 +65,13 @@ class ReportController(
if (!xlsx) {
reportFlow.value = Report.LoadingReport
}
- GlobalScope.launch {
+ // GlobalScope.launch {
when (reportType) {
ReportType.POSITIONS -> fetchPositions(deviceId, previousDate, currentDate, xlsx)
ReportType.EVENTS -> fetchEvents(deviceId, previousDate, currentDate, eventTypes, xlsx)
ReportType.STOPS -> fetchStops(deviceId, previousDate, currentDate, xlsx)
}
- }
+ // }
}
private suspend fun fetchPositions(