Changed folder structure
This commit is contained in:
parent
8d2d481de1
commit
ca35c09c4d
|
@ -5,4 +5,5 @@ tmp.txt
|
|||
blocklists/*
|
||||
!blocklists/.gitkeep
|
||||
tmp.py
|
||||
.venv
|
||||
.venv
|
||||
testtmp
|
|
@ -112,10 +112,10 @@ def upload_to_cloudflare(args):
|
|||
def delete_from_cloudflare(args):
|
||||
logger.info("Deleting from Cloudflare")
|
||||
rules = utils.utils.get_gateway_rules(ACCOUNT_ID, TOKEN)
|
||||
utils.delete.delete_adblock_policy(rules, ACCOUNT_ID, TOKEN)
|
||||
utils.delete_adblock_zerotrust.delete_adblock_policy(rules, ACCOUNT_ID, TOKEN)
|
||||
lists = utils.utils.get_lists(ACCOUNT_ID, TOKEN)
|
||||
lists = utils.utils.filter_adblock_lists(lists)
|
||||
utils.delete.delete_adblock_list(lists, ACCOUNT_ID, TOKEN)
|
||||
utils.delete_adblock_zerotrust.delete_adblock_list(lists, ACCOUNT_ID, TOKEN)
|
||||
|
||||
if __name__ == "__main__":
|
||||
cli()
|
|
@ -1,3 +1,3 @@
|
|||
from .utils import *
|
||||
from .upload import *
|
||||
from .delete import *
|
||||
from .delete_adblock_zerotrust import *
|
|
@ -5,7 +5,10 @@ description = "Serverless adblocking via Cloudflare Zero Trust Gateway"
|
|||
authors = ["slastechno <77907286+slashtechno@users.noreply.github.com>"]
|
||||
license = "MIT"
|
||||
readme = "README.md"
|
||||
packages = [{include = "src"}]
|
||||
packages = [{include = "cloudflare_gateway_adblocking"}]
|
||||
|
||||
[tool.poetry.scripts]
|
||||
cloudflare-gateway-adblocking = "cloudflare_gateway_adblocking.__main__:cli"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
|
Loading…
Reference in New Issue