Skip to content

Commit

Permalink
cleaned up scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucie Milan committed Oct 13, 2023
1 parent 764a249 commit 9515d5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 1 addition & 7 deletions scripts/json/check_json_issues.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down Expand Up @@ -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)
return json_content
3 changes: 1 addition & 2 deletions scripts/json/get_json_files.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9515d5a

Please sign in to comment.