idolezal commited on
Commit
7474e5d
1 Parent(s): 52f1ee8
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -186,7 +186,7 @@ class LeaderboardServer:
186
  elif dots_place == "begin":
187
  return "…" + s[-max_length + 1:]
188
  elif dots_place == "center" and max_length >= 3:
189
- max_length_begin = max_length / 2
190
  max_length_end = max_length - max_length_begin - 1
191
  return s[:max_length_begin] + "…" + s[-max_length_end:]
192
  else: # dots_place == "end"
 
186
  elif dots_place == "begin":
187
  return "…" + s[-max_length + 1:]
188
  elif dots_place == "center" and max_length >= 3:
189
+ max_length_begin = max_length // 2
190
  max_length_end = max_length - max_length_begin - 1
191
  return s[:max_length_begin] + "…" + s[-max_length_end:]
192
  else: # dots_place == "end"