fine tuning injestion

This commit is contained in:
Jake Pullen
2024-07-28 10:45:59 +01:00
parent fe99ee4469
commit 31b82dc1d0
4 changed files with 68 additions and 27 deletions
+10
View File
@@ -13,3 +13,13 @@ BUDGET_ID = os.getenv('BUDGET_ID')
headers = {'Authorization': f'Bearer {API_TOKEN}'}
logging.basicConfig(level=logging.DEBUG)
injest_info = {}
#entities = ['accounts', 'categories', 'months', 'payees', 'transactions', 'scheduled_transactions']
#injest_info['entities'] = entities
injest_info['base_url'] = 'https://api.ynab.com/v1/budgets'
injest_info['knowledge_file'] = 'server_knowledge_cache.json'
injest_info['API_TOKEN'] = API_TOKEN
injest_info['BUDGET_ID'] = BUDGET_ID
injest(injest_info)#.fetch_and_cache_entity_data()