Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: module spider_plus with filtered folders #391

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

glefait
Copy link
Contributor

@glefait glefait commented Aug 1, 2024

With option to filter folders is set and a folder matches the filter, there is a typo in the incremented counter.

The counter should be self.stats[f"num_{result_type}s_filtered"] and not self.stats[f"{result_type}s_filtered"].

The latter does not exists and trigger the following error:

KeyError: 'folders_filtered'

With option to filter folders is set and a folder matches the filter, there is a typo in the incremented counter.

The counter should be ` self.stats[f"num_{result_type}s_filtered"]`  and not `self.stats[f"{result_type}s_filtered"]`.

The latter does not exists and trigger the following error:
```
KeyError: 'folders_filtered'
```

Signed-off-by: Guillem Lefait <guillem.lefait@gmail.com>
@NeffIsBack NeffIsBack added the bug-fix This Pull Request fixes a bug label Aug 2, 2024
Copy link
Contributor

@NeffIsBack NeffIsBack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the bug report and fix!
LGTM

@NeffIsBack NeffIsBack merged commit f8ac2e1 into Pennyw0rth:main Aug 2, 2024
5 checks passed
@mpgn mpgn added this to the v1.3.0 milestone Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix This Pull Request fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants