Added check for chunk csv
This commit is contained in:
@@ -16,11 +16,15 @@ import datetime
|
||||
import requests
|
||||
import json
|
||||
import os
|
||||
import pandas
|
||||
import time
|
||||
import utils.pretty as ct
|
||||
import ijson
|
||||
|
||||
def pullPolicyExechistories(url, choice, policiesnames, outputjson: bool):
|
||||
if not os.path.exists('chunkinator.csv'):
|
||||
with open('chunkinator.csv', 'x') as file:
|
||||
pass
|
||||
headers = {
|
||||
"X-APIKey": os.getenv('APIKEY')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user