Closed bunsenmurder closed 3 years ago
thank-you for the detailed write-up!
(looks like it's time to do some more thorough code review in the codebase)
ah oops should have done this before I drafted a release just now. Need to fix this and some other behaviour issues and up the sub-rev.
Perfect timing actually, I was gonna make a pull request with some fixes I made.
ah nice! glad to hear it!
Feel free to up the rev to 2.1.9
Description
Currently the scraper is still retrieving blurbs for jobs that have been filtered out by the _prefilter method.
Please include a summary of the issue. Please include the steps to reproduce. List any additional libraries that are affected.
Steps to Reproduce
Expected behavior
The scraper should remove jobs identified by the by the _prefilter, and only obtain blurbs for the remaining jobs.
Actual behavior
The scraper retrieves blurbs for all jobs whether they were filtered out or not.
To fix the issue, the order of the creation of the _scrapelist and call to the _prefilter method would have to be switched. The screenshot below highlights the issue within the code and the debugger output :
Although this could've of been fixed in a pull request, making this fix would break _datefilter called by the _prefilter method in the main JobFunnel class.
Environment