Skip to content

Commit

Permalink
-Provider names are used as a prefix for job ids now. Should fix Paul…
Browse files Browse the repository at this point in the history
  • Loading branch information
thebigG committed Feb 16, 2021
1 parent 799ddaf commit 203c036
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jobfunnel/backend/scrapers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ def scrape_job(self, job_soup: BeautifulSoup, delay: float,
if job and not invalid_job:
try:
job.validate()
# Prefix the id with the scraper name to avoid key conflicts
new_key_id = job.provider + '_' + job.key_id
job.key_id = new_key_id
except Exception as err:
# Bad job scrapes can't take down execution!
# NOTE: desc too short etc, usually indicates that the job
Expand Down

0 comments on commit 203c036

Please sign in to comment.