diff --git a/maker_domains.py b/maker_domains.py index 5a3374e..31fd9f5 100644 --- a/maker_domains.py +++ b/maker_domains.py @@ -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: diff --git a/maker_rpz.py b/maker_rpz.py index 62b8236..cc6997f 100644 --- a/maker_rpz.py +++ b/maker_rpz.py @@ -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')