Added check for chunk csv

This commit is contained in:
brotoskyj
2025-08-30 19:57:25 -04:00
parent 7ef5a83ff2
commit e9c7ba132a
+4
View File
@@ -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')
}