Skip to content

Commit

Permalink
Fix the slowdown on starting with lots of maps (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvlk committed Nov 5, 2022
1 parent af5e68d commit 0a3db54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyplanet/contrib/map/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ async def update_list(self, full_update=False, detach_fks=True):
details = [m for m in raw_list if m['UId'] == existing_map.uid][0]

# Detect any (T)MX-id from the filename.
mx_id = self._extract_mx_id(details['FileName'])
try:
mx_id = int(self._extract_mx_id(details['FileName']))
except:
mx_id = None

author_nickname = await self.get_map_author_nickname(details)

Expand Down

0 comments on commit 0a3db54

Please sign in to comment.