Spaces:
Runtime error
Runtime error
Fix
Browse files
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
|
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"
|