Remove unused imports
This commit is contained in:
parent
32f1cf588e
commit
df2a598c9e
|
@ -75,7 +75,7 @@ def main():
|
||||||
upload_parser.add_argument(
|
upload_parser.add_argument(
|
||||||
"--whitelists",
|
"--whitelists",
|
||||||
"-w",
|
"-w",
|
||||||
help="Either a whitelist hosts file or a directory containing whitelist hosts files", # noqa E501
|
help="Either a whitelist hosts file or a directory containing whitelist hosts files", # noqa E501
|
||||||
default="whitelist.txt", # Need to change this so it's optional
|
default="whitelist.txt", # Need to change this so it's optional
|
||||||
)
|
)
|
||||||
# Add subcommand: delete
|
# Add subcommand: delete
|
||||||
|
|
|
@ -45,7 +45,6 @@ def split_list(blocklists):
|
||||||
|
|
||||||
|
|
||||||
def upload_to_cloudflare(lists, account_id: str, token: str) -> None:
|
def upload_to_cloudflare(lists, account_id: str, token: str) -> None:
|
||||||
# A: It's iterating over the lists and uploading them to Cloudflare, the enumerate function is used to get the index of the list since lists is a list of lists
|
|
||||||
for i, lst in enumerate(lists):
|
for i, lst in enumerate(lists):
|
||||||
list_name = f"adblock-list-{i + 1}"
|
list_name = f"adblock-list-{i + 1}"
|
||||||
url = (
|
url = (
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import os
|
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from dotenv import load_dotenv
|
|
||||||
|
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
|
|
Loading…
Reference in New Issue