We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d30093e commit 521fbe5Copy full SHA for 521fbe5
tle/cogs/cses.py
@@ -30,9 +30,6 @@ async def _cache_data(self):
30
31
async def _reload(self):
32
self.reloading = True
33
- self.short_placings = {}
34
- self.fast_placings = {}
35
-
36
short_placings = defaultdict(list)
37
fast_placings = defaultdict(list)
38
try:
@@ -42,12 +39,10 @@ async def _reload(self):
42
39
fast_placings[fast[i]].append(i + 1)
43
40
for i in range(len(short)):
44
41
short_placings[short[i]].append(i + 1)
45
- except cses.CSESError:
46
- pass # TODO log here?
47
- finally:
48
- self.reloading = False
49
self.short_placings = short_placings
50
self.fast_placings = fast_placings
+ finally:
+ self.reloading = False
51
52
def format_leaderboard(self, top, placings):
53
if not top:
0 commit comments