Fixed uptime months calculation

This commit is contained in:
Erik C. Thauvin 2022-11-21 10:13:44 -08:00
parent a2646ceb9f
commit b6e1888e70
12 changed files with 32 additions and 24 deletions

View file

@ -77,7 +77,7 @@ class Info(private val tell: Tell, private val seen: Seen) : AbstractCommand() {
append(years).append(" year".plural(years)).append(' ')
}
if (months > 0) {
append(weeks).append(" month".plural(months)).append(' ')
append(months).append(" month".plural(months)).append(' ')
}
if (weeks > 0) {
append(weeks).append(" week".plural(weeks)).append(' ')

View file

@ -49,7 +49,6 @@ class WolframAlpha : ThreadedModule() {
override val name = "WolframAlpha"
private fun getUnits(unit: String?): String {
println("--> $unit")
return if (unit?.lowercase() == METRIC) {
METRIC
} else {