safety
This commit is contained in:
parent
8f655c3bc9
commit
ec041917a4
1 changed files with 2 additions and 2 deletions
|
|
@ -557,7 +557,7 @@ async def status_task(sid: int):
|
||||||
await currServ.create_voice_channel("Players: " + str(players) + "/" + str(max),
|
await currServ.create_voice_channel("Players: " + str(players) + "/" + str(max),
|
||||||
overwrites=overwrites)
|
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))
|
tStr = "Player Hrs: " + str(round((lastSeconds + len(names) * (currTime - lastTime).total_seconds())/3600))
|
||||||
if len(tChannels) > 0:
|
if len(tChannels) > 0:
|
||||||
lastTName = tChannels[0].name
|
lastTName = tChannels[0].name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue