Remove obsolete API message
This commit is contained in:
parent
4d67b36ad9
commit
270e3d1d09
|
@ -11,8 +11,6 @@ import io.ktor.server.netty.*
|
|||
import kotlinx.coroutines.runBlocking
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
println("Arguments (${args.size}): [${args.joinToString(", ")}]")
|
||||
|
||||
if(args.size >= 3 && args[0] == "-reload") {
|
||||
val xmlFile = args[1]
|
||||
val jsonFile = args[2]
|
||||
|
@ -39,8 +37,9 @@ fun dbSetup(xmlFile: String, jsonFile: String, force: Boolean = false) {
|
|||
if(force || (xml.version.version isNewerThan current.version)) {
|
||||
Database.reset()
|
||||
Loader.importToDb(xml, perf)
|
||||
println("Database reset/reloaded!")
|
||||
}
|
||||
if(!(xml.version.version isNewerThan current.version)) {
|
||||
else if(!(xml.version.version isNewerThan current.version)) {
|
||||
System.err.println("The XML file (${xml.version}) is not more up-to-date than the database ($current). Use -force to force importing.")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
SERVER_URL=https://simd.jaytux.com/api
|
Loading…
Reference in New Issue