forked from CMS/memberPlumbing
sqlExport: Truncate the transactions table every pull to avoid duplication issues
This commit is contained in:
parent
ca9a089108
commit
af0584651c
@ -44,6 +44,8 @@ def do_import(config):
|
|||||||
ml.delete_instance()
|
ml.delete_instance()
|
||||||
|
|
||||||
print("Getting/Updating transactions...")
|
print("Getting/Updating transactions...")
|
||||||
|
# Deduping these is hard, so just recreate the data every time
|
||||||
|
Transaction.truncate_table();
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
start_date = datetime(2010, 1, 1)
|
start_date = datetime(2010, 1, 1)
|
||||||
transactions_csv = membershipworks.get_transactions(start_date, now)
|
transactions_csv = membershipworks.get_transactions(start_date, now)
|
||||||
|
Loading…
Reference in New Issue
Block a user