From e9c7ba132a517b126a612e9167d2f3fd79a261f4 Mon Sep 17 00:00:00 2001 From: brotoskyj Date: Sat, 30 Aug 2025 19:57:25 -0400 Subject: [PATCH] Added check for chunk csv --- utils/allowlist.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/allowlist.py b/utils/allowlist.py index 758ec08..894bbae 100644 --- a/utils/allowlist.py +++ b/utils/allowlist.py @@ -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') }