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 Nov 2, 2017
1 parent 4954b04 commit ee44cdd
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 @@ -155,7 +155,10 @@ def get_companies(self):
if self.company_count < 10:

# Suggest other jobs.
alternative_rome_codes = settings.ROME_MOBILITIES[self.rome]
try:
alternative_rome_codes = settings.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 ee44cdd

Please sign in to comment.