use the current directory to store the config.xml and cached timetables

pull/18/head 1.2.1
Jannik 3 years ago
parent 2bb6bc6534
commit a13203c477
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
  1. 6
      .gitignore
  2. 2
      build.gradle
  3. 4
      src/main/kotlin/org/mosad/thecitadelofricks/APIController.kt
  4. 2
      src/main/kotlin/org/mosad/thecitadelofricks/Application.kt
  5. 2
      src/main/kotlin/org/mosad/thecitadelofricks/DataTypes.kt
  6. 4
      src/main/kotlin/org/mosad/thecitadelofricks/controller/CacheController.kt
  7. 2
      src/main/kotlin/org/mosad/thecitadelofricks/controller/CachetAPIController.kt
  8. 6
      src/main/kotlin/org/mosad/thecitadelofricks/controller/StartupController.kt
  9. 2
      src/main/kotlin/org/mosad/thecitadelofricks/controller/StatusController.kt
  10. 2
      src/main/kotlin/org/mosad/thecitadelofricks/hsoparser/CourseListParser.kt
  11. 2
      src/main/kotlin/org/mosad/thecitadelofricks/hsoparser/MensaParser.kt
  12. 2
      src/main/kotlin/org/mosad/thecitadelofricks/hsoparser/TimetableParser.kt

6
.gitignore vendored

@ -35,6 +35,7 @@ captures/
# Intellij
*.iml
.idea/
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
@ -55,6 +56,9 @@ freeline.py
freeline/
freeline_project_description.json
# KDE
.directory
.idea/
# tcor
tcor/

@ -49,4 +49,4 @@ compileTestKotlin {
}
group 'org.mosad'
version '1.2.0'
version '1.2.1'

@ -1,7 +1,7 @@
/**
* TheCitadelofRicks
*
* Copyright 2019 <seil0@mosad.xyz>
* Copyright 2019-2020 <seil0@mosad.xyz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -48,7 +48,7 @@ class APIController {
companion object {
const val apiVersion = "1.1.4"
const val softwareVersion = "1.2.0"
const val softwareVersion = "1.2.1"
val startTime = System.currentTimeMillis() / 1000
}

@ -1,7 +1,7 @@
/**
* TheCitadelofRicks
*
* Copyright 2019 <seil0@mosad.xyz>
* Copyright 2019-2020 <seil0@mosad.xyz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

@ -1,7 +1,7 @@
/**
* TheCitadelofRicks
*
* Copyright 2019 <seil0@mosad.xyz>
* Copyright 2019-2020 <seil0@mosad.xyz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

@ -1,7 +1,7 @@
/**
* TheCitadelofRicks
*
* Copyright 2019 <seil0@mosad.xyz>
* Copyright 2019-2020 <seil0@mosad.xyz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -116,7 +116,7 @@ class CacheController {
}
/**
* get every explicit lesson in a week
* get every lesson of a subject in a week
* @param courseName the name of the course to be requested
* @param lessonSubject the lesson subject to be requested
* @param weekIndex request week number (current week = 0)

@ -1,7 +1,7 @@
/**
* TheCitadelofRicks
*
* Copyright 2019 <seil0@mosad.xyz>
* Copyright 2019-2020 <seil0@mosad.xyz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

@ -1,7 +1,7 @@
/**
* TheCitadelofRicks
*
* Copyright 2019 <seil0@mosad.xyz>
* Copyright 2019-2020 <seil0@mosad.xyz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -35,8 +35,8 @@ class StartupController {
private val logger: Logger = LoggerFactory.getLogger(CacheController::class.java)
companion object {
val userHome: String = System.getProperty("user.home")
val tcorHome = "$userHome/.tcor"
val userHome: String = System.getProperty("user.dir")
val tcorHome = "$userHome/tcor"
val dirTcorHome = File(tcorHome)
val dirTcorCache = File("$tcorHome/cache")
val fileConfig = File("$tcorHome/config.xml")

@ -1,7 +1,7 @@
/**
* TheCitadelofRicks
*
* Copyright 2019 <seil0@mosad.xyz>
* Copyright 2019-2020 <seil0@mosad.xyz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

@ -1,7 +1,7 @@
/**
* TheCitadelofRicks
*
* Copyright 2019 <seil0@mosad.xyz>
* Copyright 2019-2020 <seil0@mosad.xyz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

@ -1,7 +1,7 @@
/**
* TheCitadelofRicks
*
* Copyright 2019 <seil0@mosad.xyz>
* Copyright 2019-2020 <seil0@mosad.xyz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

@ -1,7 +1,7 @@
/**
* TheCitadelofRicks
*
* Copyright 2019 <seil0@mosad.xyz>
* Copyright 2019-2020 <seil0@mosad.xyz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close