Remove "quiet" from apiConfig before we send any API requests.

This commit is contained in:
Hyperspeed1313 2024-10-11 22:54:50 -05:00
parent 2d98bed301
commit b81721e3d8

View file

@ -38,6 +38,7 @@ if len(sys.argv)>2: #at least the config and root domain is specified
apiConfig = json.load(open(sys.argv[1])) #load the config file into a variable apiConfig = json.load(open(sys.argv[1])) #load the config file into a variable
rootDomain=sys.argv[2].lower() rootDomain=sys.argv[2].lower()
canPrint=not apiConfig["quiet"].lower=="true" canPrint=not apiConfig["quiet"].lower=="true"
del apiConfig["quiet"] # Remove quiet so it doesn't get send with the API requests
if len(sys.argv)>3 and sys.argv[3]!='-i': #check if a subdomain was specified as the third argument if len(sys.argv)>3 and sys.argv[3]!='-i': #check if a subdomain was specified as the third argument
subDomain=sys.argv[3].lower() subDomain=sys.argv[3].lower()