Skip to content

Commit

Permalink
Merge pull request #2 from GeneriedJenelle/roundduration2
Browse files Browse the repository at this point in the history
Adjusts round duration var.
  • Loading branch information
GeneriedJenelle authored Jul 30, 2020
2 parents b616fa2 + 859bddf commit 6a758c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions status/ss13status.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ async def status(self, ctx):

else:
#Reported time is in seconds, we need to convert that to be easily understood
duration = int(*data['roundduration'])
duration = time.strftime('%H:%M', time.gmtime(duration))
duration = str.title(*data['roundduration'])
#Players also includes the number of admins, so we need to do some quick math
players = (int(*data['players']) - int(*data['admins']))
#Format long map names
Expand Down

0 comments on commit 6a758c5

Please sign in to comment.