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'])