Strip leading 0 and : from scores.

This commit is contained in:
alwayscompiling
2022-07-12 15:15:37 -04:00
parent 115e3dd3d0
commit 8eeda14119
+3
View File
@@ -85,6 +85,9 @@ async def submit_score(
# capping to 12 characters because runescape names are 12 characters long.
user = user[:12]
# strip leading zeros and colon from score
score = score.lstrip("0:")
# create score tuple for either time or int
# define sort index
if highscores_config["categories"][config_category]["is_time_record"]: