sqlExport: Truncate the transactions table every pull to avoid duplication issues

This commit is contained in:
Adam Goldsmith 2020-05-07 00:37:21 -04:00
parent ca9a089108
commit af0584651c

View File

@ -44,6 +44,8 @@ def do_import(config):
ml.delete_instance()
print("Getting/Updating transactions...")
# Deduping these is hard, so just recreate the data every time
Transaction.truncate_table();
now = datetime.now()
start_date = datetime(2010, 1, 1)
transactions_csv = membershipworks.get_transactions(start_date, now)