From 50952bdb460b8570bb568f8ff560c30883e2a6bb Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 7 May 2020 01:00:21 -0400 Subject: [PATCH] sqlExport: Change "For"->"Event/Form Name" header name in transactions at some point MembershipWorks changed the header in the CSV export --- memberPlumbing/mw_models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/memberPlumbing/mw_models.py b/memberPlumbing/mw_models.py index 4f26756..cfdb1ba 100644 --- a/memberPlumbing/mw_models.py +++ b/memberPlumbing/mw_models.py @@ -225,7 +225,11 @@ class Transaction(BaseModel): phone = TextField(column_name="Phone", null=True) email = TextField(column_name="Email", null=True) - _csv_headers_override = {"_dp": "timestamp", "Transaction Type": "type"} + _csv_headers_override = { + "_dp": "timestamp", + "Transaction Type": "type", + "Event/Form Name": "for_", + } @classmethod def from_csv_dict(cls, data):