This commit is contained in:
bMorgan01 2022-11-20 11:17:29 -07:00
parent 8f655c3bc9
commit ec041917a4

View file

@ -557,7 +557,7 @@ async def status_task(sid: int):
await currServ.create_voice_channel("Players: " + str(players) + "/" + str(max),
overwrites=overwrites)
if getShowHours(sid, cursor) and not first_iter:
if getShowHours(sid, cursor) and not first_iter and lastSeconds is not None:
tStr = "Player Hrs: " + str(round((lastSeconds + len(names) * (currTime - lastTime).total_seconds())/3600))
if len(tChannels) > 0:
lastTName = tChannels[0].name