Skip to content

Commit

Permalink
+ fixed notification mark scale
Browse files Browse the repository at this point in the history
  • Loading branch information
PegasisForever committed Dec 16, 2019
1 parent b4c9ca9 commit 662dc26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/modes/server/timeline/CourseListComparer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fun compareAssignments(
updateList += AssignmentAdded().apply {
courseName = newCourse.displayName
this.assignment = assignment
assignmentAvg = assignment.getAverage(newCourse.weightTable!!)
assignmentAvg = assignment.getAverage(newCourse.weightTable!!) * 100
overallBefore = oldCourse.overallMark?.mark
overallAfter = newCourse.overallMark!!.mark!!
time = compareTime
Expand All @@ -30,10 +30,10 @@ fun compareAssignments(
courseName = newCourse.displayName
assignmentName = assignment.name
assignmentBefore = oldAssignment
assignmentAvgBefore = oldAssignment.getAverage(oldCourse.weightTable!!)
assignmentAvgBefore = oldAssignment.getAverage(oldCourse.weightTable!!) * 100
overallBefore = oldCourse.overallMark?.mark
assignmentAfter = assignment
assignmentAvgAfter = assignment.getAverage(newCourse.weightTable!!)
assignmentAvgAfter = assignment.getAverage(newCourse.weightTable!!) * 100
overallAfter = newCourse.overallMark?.mark
time = compareTime
}
Expand Down
2 changes: 1 addition & 1 deletion src/tools.kt
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ enum class LogLevel {

private val logDateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS")
val fileDateFormat = SimpleDateFormat("yyyy-MM-dd")
const val serverBuildNumber = 30
const val serverBuildNumber = 31
fun log(level: LogLevel, msg: String, throwable: Throwable? = null) {
val date = Date()
var logText =
Expand Down

0 comments on commit 662dc26

Please sign in to comment.