Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
rome_mobilities quick dirty fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dejafait committed Jan 25, 2018
1 parent cbf19a7 commit 16a70a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion labonneboite/common/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ def get_companies(self, add_suggestions=False):
if self.company_count < 10 and add_suggestions:

# Suggest other jobs.
alternative_rome_codes = ROME_MOBILITIES[self.rome]
try:
alternative_rome_codes = ROME_MOBILITIES[self.rome]
except KeyError: # FIXME regenerate rome_mobilities dataset after rome slicing
alternative_rome_codes = []
for rome in alternative_rome_codes:
if not rome == self.rome:
company_count = self._get_company_count(rome, self.distance)
Expand Down

0 comments on commit 16a70a4

Please sign in to comment.