From b971b8b0ae07480f1ad858c351265e3a54656417 Mon Sep 17 00:00:00 2001 From: slashtechno <77907286+slashtechno@users.noreply.github.com> Date: Tue, 1 Aug 2023 10:58:52 -0500 Subject: [PATCH] Fixed `upload` not executing properly --- src/__main__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/__main__.py b/src/__main__.py index 0c9becf..fd6211f 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -1,6 +1,9 @@ +# To run from the root project directory, run the following command: +# python -m src.__main__ from loguru import logger # Import the utils package from . import utils +# import utils import argparse import os @@ -102,10 +105,11 @@ def main(): args.func(args) except AttributeError: argparser.print_help() + pass def upload_to_cloudflare(args): logger.info("Uploading to Cloudflare") - blocklists = utils.utils.get_blocklists(args.blocklists) + blocklists = utils.upload.get_blocklists(args.blocklists) blocklists = utils.upload.apply_whitelists(blocklists, args.whitelists) lists = utils.upload.split_list(blocklists) utils.upload.upload_to_cloudflare(lists, ACCOUNT_ID, TOKEN)