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

remove error prone total_changes function introduced in #158 #164

Merged
merged 2 commits into from
Sep 2, 2020
Merged

remove error prone total_changes function introduced in #158 #164

merged 2 commits into from
Sep 2, 2020

Conversation

mwoolweaver
Copy link
Contributor

also fix merge issue of #163

@anudeepND
Copy link
Owner

@mwoolweaver Thank you for your contribution. Merging.

@anudeepND anudeepND merged commit 67fbf57 into anudeepND:master Sep 2, 2020
@anudeepND
Copy link
Owner

@mwoolweaver The whitelist.py outputs the number of domains added as 188 domains and does not show the actual number.

Steps to reproduce:

  1. clone the latest version
  2. delete some of the entries in your whitelist
  3. run the script
  4. it will always show 188 domains added to the whitelist

@mwoolweaver
Copy link
Contributor Author

is that because the script is pulling from github and not the database that's cloned with the script?

https://github.com/anudeepND/whitelist/blob/master/scripts/whitelist.py#L75

@mwoolweaver
Copy link
Contributor Author

mwoolweaver commented Sep 2, 2020

the way to actually test this is to add a domain that is known to be whitelisted by the script to your whitelist before you run the script (DO NOT LEAVE A COMMENT) and it will not add that domain and will show a different number.

image

@mwoolweaver
Copy link
Contributor Author

Or @anudeepND you’re talking about if a user is updating the list? I will agree in that area cause of the way it verifies domains being adding is just checking for their presence in the database which would have that caveat.

@mwoolweaver
Copy link
Contributor Author

I am currently investigating checking date_added in pi-hole's database for the current date.

@mwoolweaver mwoolweaver mentioned this pull request Sep 2, 2020
@mwoolweaver
Copy link
Contributor Author

mwoolweaver commented Sep 2, 2020

@anudeepND please see #168 for a fix I hope

This was referenced Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants