Closed mwoolweaver closed 4 years ago
@mwoolweaver Thank you for your contribution. Merging.
@mwoolweaver The whitelist.py
outputs the number of domains added as 188 domains and does not show the actual number.
Steps to reproduce:
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
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.
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.
I am currently investigating checking date_added
in pi-hole's database for the current date.
@anudeepND please see #168 for a fix I hope
also fix merge issue of #163