Added level

Also fixed IP logic because this was real messed up
This commit is contained in:
Geoffrey Frogeye 2019-12-16 09:31:29 +01:00
parent 3197fa1663
commit 03a4042238
Signed by: geoffrey
GPG key ID: D8A7ECA00A8CD3DD
3 changed files with 167 additions and 67 deletions

View file

@ -33,9 +33,11 @@ if __name__ == '__main__':
DB = database.Database()
if args.rules:
if not args.count:
raise NotImplementedError
print(DB.count_rules(first_party_only=args.first_party))
if args.count:
print(DB.count_rules(first_party_only=args.first_party))
else:
for line in DB.list_rules():
print(line)
else:
if args.count:
raise NotImplementedError