Update FriendAgoSorted.xml

master
AardCrowley 2 years ago committed by GitHub
parent ba6d7cdc96
commit e1806dd4f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,8 +55,7 @@ friendsAlpha = {}
count = 0 count = 0
reverse = false reverse = false
--strForm = "@w%3d) - %-12s@R(Offline - %d day%s and %02d:%02d:%02d)\n" strForm = "@w%3d) - %-12s@R(Offline - %s%02d:%02d:%02d)\n"
strForm = "@w%3d) - %-12s@R(Offline -%s%02d:%02d:%02d)\n"
statForm = "@w%3d) - %-12s%s(%s)\n" statForm = "@w%3d) - %-12s%s(%s)\n"
function resetValues() function resetValues()
@ -110,7 +109,7 @@ function returnOutput()
friendSeconds = sortTableByValue(friendSeconds) friendSeconds = sortTableByValue(friendSeconds)
for i,v in pairs(friendSeconds) do for i,v in pairs(friendSeconds) do
local dayStr = " " local dayStr = ""
local kname = v.key local kname = v.key
local fTable = friendAgo[kname] local fTable = friendAgo[kname]
local days = tonumber(fTable.days) local days = tonumber(fTable.days)
@ -119,7 +118,7 @@ function returnOutput()
local seconds = fTable.seconds local seconds = fTable.seconds
local plural = (days == 1 and "day" or "days") local plural = (days == 1 and "day" or "days")
if days > 0 then if days > 0 then
dayStr = " " .. days .. " " .. plural .. " and " dayStr = days .. " " .. plural .. " and "
end end
Simulate(ColoursToANSI(string.format(strForm, i, kname, dayStr, hours, minutes, seconds))) Simulate(ColoursToANSI(string.format(strForm, i, kname, dayStr, hours, minutes, seconds)))
count = i count = i

Loading…
Cancel
Save