1
0
mirror of https://github.com/minoplhy/filters-maker.git synced 2024-12-22 18:18:13 +00:00
This commit is contained in:
minoplhy 2021-08-02 22:17:07 +07:00
parent 24c483b156
commit 7dc6cdb522
2 changed files with 3 additions and 2 deletions

View File

@ -12,9 +12,9 @@ def linecounter(incoming):
pass
return i + 1
ankstanop = linecounter()
def domainsbuilding(excluded ,incoming):
ankstanop = linecounter(incoming)
with open(excluded ,'r') as f:
exclude = f.read().split()
with open(incoming ,'r') as f:

View File

@ -13,6 +13,7 @@ def linecounter(incoming):
return i + 1
def RPZbuilding(excluded,incoming,output):
ankstanop = linecounter(incoming)
with open(excluded ,'r') as f:
exclude = f.read().split()
with open(incoming ,'r') as f:
@ -21,7 +22,7 @@ def RPZbuilding(excluded,incoming,output):
f.write('; Title : Minoplhy Personal Blocklist\n')
f.write('; Description : My Very Personal DNS Blocklist plus crawling from the source\n')
f.write('; Source : Resources/Source.txt\n')
f.write('; Rule Counter : ' + str(linecounter()) +' Rules\n')
f.write('; Rule Counter : ' + str(ankstanop) +' Rules\n')
f.write('; Format : RPZ\n')
f.write('; Licenses : MIT\n')
f.write('; Compiled Date : ' + str(date) +'\n\n')