parent
b8d642e393
commit
f1afe82492
|
@ -26,7 +26,7 @@ object StatisticsImporter {
|
||||||
private val klaxon = Klaxon()
|
private val klaxon = Klaxon()
|
||||||
|
|
||||||
fun importStatistics(folder: String, database: Database) {
|
fun importStatistics(folder: String, database: Database) {
|
||||||
println("Importing new statistics...")
|
println("Starting new statistics import.")
|
||||||
File(folder).listFiles().forEach { readFile(it, database) }
|
File(folder).listFiles().forEach { readFile(it, database) }
|
||||||
println("Updating live statistics table...")
|
println("Updating live statistics table...")
|
||||||
updateLiveStatistics(database)
|
updateLiveStatistics(database)
|
||||||
|
@ -34,6 +34,7 @@ object StatisticsImporter {
|
||||||
updateAggregateStatistics(database)
|
updateAggregateStatistics(database)
|
||||||
println("Refreshing player names...")
|
println("Refreshing player names...")
|
||||||
refreshPlayerNames(database)
|
refreshPlayerNames(database)
|
||||||
|
println("Finished new statistics import.")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun readFile(file: File, database: Database) {
|
fun readFile(file: File, database: Database) {
|
||||||
|
|
Loading…
Reference in New Issue