Merge branch '90-00-in-score'
This commit is contained in:
@@ -208,9 +208,9 @@ class SubmissionCog(commands.Cog):
|
|||||||
elif re.search("^[0-9](\\.[0-9])?$", score):
|
elif re.search("^[0-9](\\.[0-9])?$", score):
|
||||||
# need to add 0 in seconds and leading colon and 0
|
# need to add 0 in seconds and leading colon and 0
|
||||||
score = "0:0" + score
|
score = "0:0" + score
|
||||||
elif re.search("^[0]?[0-9]:[0-9]{2}(\\.[0-9])?$", score):
|
elif re.search("^[0][0-9]:[0-9]{2}(\\.[0-9])?$", score):
|
||||||
# if there is a minute 10ths place 0, remove
|
# if there is a minute 10ths place 0, remove
|
||||||
score = score.lstrip("0")
|
score = score[1:]
|
||||||
|
|
||||||
return score
|
return score
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user