From 44e560cd34c2d7f276b045f2bfbe6aab382316e6 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 29 Feb 2020 11:07:08 -0500 Subject: [PATCH] sqlExport: Remove name from transactions assertion because apparently basic data consistency is too much to ask for --- sqlExport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlExport.py b/sqlExport.py index bc1aeba..9f294fb 100644 --- a/sqlExport.py +++ b/sqlExport.py @@ -117,7 +117,7 @@ try: # this is terrible, but as long as the dates are the same, should be fiiiine transactions = [{**j, **v} for j, v in zip(transactions_csv, transactions_json)] - assert all([t['Name'] == t['nam'] and t['Account ID'] == t.get('uid', '') + assert all([t['Account ID'] == t.get('uid', '') and t['Payment ID'] == t.get('sid', '') for t in transactions]) insertFromTableMap('transactions', transactions, tableMapping['transactions'])