From f1afe82492046820a807600a2ce56b336e19d656 Mon Sep 17 00:00:00 2001 From: Kevin Belisle Date: Mon, 19 Jul 2021 03:03:16 -0400 Subject: [PATCH] Added a log when import tasks are done --- app/src/main/kotlin/xyz/etztech/stonks/StatisticsImporter.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/xyz/etztech/stonks/StatisticsImporter.kt b/app/src/main/kotlin/xyz/etztech/stonks/StatisticsImporter.kt index 84e9fad..8f890e8 100644 --- a/app/src/main/kotlin/xyz/etztech/stonks/StatisticsImporter.kt +++ b/app/src/main/kotlin/xyz/etztech/stonks/StatisticsImporter.kt @@ -26,7 +26,7 @@ object StatisticsImporter { private val klaxon = Klaxon() fun importStatistics(folder: String, database: Database) { - println("Importing new statistics...") + println("Starting new statistics import.") File(folder).listFiles().forEach { readFile(it, database) } println("Updating live statistics table...") updateLiveStatistics(database) @@ -34,6 +34,7 @@ object StatisticsImporter { updateAggregateStatistics(database) println("Refreshing player names...") refreshPlayerNames(database) + println("Finished new statistics import.") } fun readFile(file: File, database: Database) {