1
0
Fork 0

Added a log when import tasks are done

main release-0.3
Kevin Belisle 2021-07-19 03:03:16 -04:00
parent b8d642e393
commit f1afe82492
1 changed files with 2 additions and 1 deletions

View File

@ -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) {