From 9515d5a12174adb7d9a459995711169633b77124 Mon Sep 17 00:00:00 2001 From: Lucie Milan Date: Fri, 13 Oct 2023 14:33:07 +0200 Subject: [PATCH] cleaned up scripts --- scripts/json/check_json_issues.py | 8 +------- scripts/json/get_json_files.py | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/json/check_json_issues.py b/scripts/json/check_json_issues.py index 2ae170bd2..b151800a4 100644 --- a/scripts/json/check_json_issues.py +++ b/scripts/json/check_json_issues.py @@ -1,5 +1,3 @@ -import json, os - # Fix issue when the parent element doesn't hae "properties" and the child element doesn't either def fixProperty(property): @@ -54,8 +52,4 @@ def checkJSONIssues(json_content): props = json_content['properties'] props = fixProperty(props) - return json_content - -# with open('../../_data/taps/schemas/xero/v1/json/allocations.json', 'r') as f: -# json_content = json.load(f) -# checkJSONIssues(json_content) \ No newline at end of file + return json_content \ No newline at end of file diff --git a/scripts/json/get_json_files.py b/scripts/json/get_json_files.py index dd6bf0325..bb9020cec 100644 --- a/scripts/json/get_json_files.py +++ b/scripts/json/get_json_files.py @@ -1,5 +1,4 @@ -import requests, re, base64, json, datetime, os, pandas, sys, zipfile, yaml, shutil -from datetime import datetime as dt +import requests, re, json, os, sys, zipfile, yaml, shutil from format_json import formatJSON from check_table_data import checkTableData from get_integration_data import getIntegrationData