Data paths were hardcoded

This commit is contained in:
jay-tux 2025-04-25 19:16:32 +02:00
parent 827c5e013d
commit 4d67b36ad9
Signed by: jay-tux
GPG Key ID: 84302006B056926E
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ fun main(args: Array<String>) {
fun dbSetup(xmlFile: String, jsonFile: String, force: Boolean = false) { fun dbSetup(xmlFile: String, jsonFile: String, force: Boolean = false) {
runBlocking { runBlocking {
val xml = Loader.loadXml("/home/jay/intrinsics/data.xml") val xml = Loader.loadXml(xmlFile)
val perf = Loader.loadJson("/home/jay/intrinsics/perf2.js") val perf = Loader.loadJson(jsonFile)
val current = Loader.DatedVersion.fromPrefs() val current = Loader.DatedVersion.fromPrefs()
if(force || (xml.version.version isNewerThan current.version)) { if(force || (xml.version.version isNewerThan current.version)) {