sqlExport: Fix name of property on member, add essential business self-cert

I used the old name, instead of the new name...
This commit is contained in:
Adam Goldsmith 2020-05-19 10:14:48 -04:00
parent 85a2ab977a
commit 9970838b5c

View File

@ -101,8 +101,9 @@ class Member(BaseModel):
access_permitted_shops_during_extended_hours = BooleanField( access_permitted_shops_during_extended_hours = BooleanField(
column_name="Access Permitted Shops During Extended Hours?", null=True column_name="Access Permitted Shops During Extended Hours?", null=True
) )
access_permitted_during_limited_operations = BooleanField( normal_access_permitted_during_covid19_limited_operations = BooleanField(
column_name="Access Permitted During Limited Operations", null=True column_name="Normal Access Permitted During COVID-19 Limited Operations",
null=True,
) )
access_permitted_during_covid19_staffed_period_only = BooleanField( access_permitted_during_covid19_staffed_period_only = BooleanField(
column_name="Access Permitted During COVID-19 Staffed Period Only", null=True column_name="Access Permitted During COVID-19 Staffed Period Only", null=True
@ -173,12 +174,17 @@ class Member(BaseModel):
liability_form_filled_out = BooleanField( liability_form_filled_out = BooleanField(
column_name="Liability Form Filled Out", null=True column_name="Liability Form Filled Out", null=True
) )
self_certify_essential_business = BooleanField(
column_name="selfCertifyEssentialBusiness", null=True
)
_csv_headers_override = { _csv_headers_override = {
"Account ID": "uid", "Account ID": "uid",
"Please tell us how you heard about the Claremont MakerSpace and what tools or shops you are most excited to start using:": "how_did_you_hear", "Please tell us how you heard about the Claremont MakerSpace and what tools or shops you are most excited to start using:": "how_did_you_hear",
"Yes - I authorize TwinState MakerSpaces, Inc. to charge my credit card for the membership and other options that I have selected.": "authorize_charge", "Yes - I authorize TwinState MakerSpaces, Inc. to charge my credit card for the membership and other options that I have selected.": "authorize_charge",
"I have read the Claremont MakerSpace Membership Agreement & Policies, and agree to all terms stated therein.": "policy_agreement", "I have read the Claremont MakerSpace Membership Agreement & Policies, and agree to all terms stated therein.": "policy_agreement",
"Access Permitted Using Membership Level Schedule During COVID-19 Limited Operations": "normal_access_permitted_during_covid19_limited_operations",
"I hereby certify that I am involved in Essential Business as defined by the State of New Hampshire and that I will follow the practices identified in the State of New Hampshire Exhibit C to Emergency Order #40 (Section E. Manufacturing).": "self_certify_essential_business",
} }
_date_fields = { _date_fields = {