From cfccc433dd5627fa802ca717a1392eb3918015a6 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 27 Oct 2020 21:04:44 -0400 Subject: [PATCH] Apply minor formatting changes from black --- memberPlumbing/MembershipWorks.py | 14 +++++++------- memberPlumbing/hidEvents.py | 6 +++++- memberPlumbing/sqlExport.py | 6 +++++- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/memberPlumbing/MembershipWorks.py b/memberPlumbing/MembershipWorks.py index 82b20e5..20dee83 100644 --- a/memberPlumbing/MembershipWorks.py +++ b/memberPlumbing/MembershipWorks.py @@ -171,10 +171,10 @@ class MembershipWorks: # TODO: has issues with aliasing header names: # ex: "Personal Studio Space" Label vs Membership Addon/Field def get_members(self, folders, columns): - """ Pull the members csv from the membershipworks api - folders: a list of the names of the folders to get - (see folder_map in this function for mapping to ids) - columns: which columns to get""" + """Pull the members csv from the membershipworks api + folders: a list of the names of the folders to get + (see folder_map in this function for mapping to ids) + columns: which columns to get""" ids = self.get_member_ids(folders) # get members CSV @@ -195,10 +195,10 @@ class MembershipWorks: def get_transactions(self, start_date, end_date, json=False): """Get the transactions between start_date and end_date - Dates can be datetime.date or datetime.datetime + Dates can be datetime.date or datetime.datetime - json gets a different version of the transactions list, - which contains a different set information + json gets a different version of the transactions list, + which contains a different set information """ r = self._get( BASE_URL + "csv", diff --git a/memberPlumbing/hidEvents.py b/memberPlumbing/hidEvents.py index 2e8e4bf..735d258 100755 --- a/memberPlumbing/hidEvents.py +++ b/memberPlumbing/hidEvents.py @@ -97,7 +97,11 @@ def main(): config = Config() database.init( **config.HID_DB, - **{"charset": "utf8", "sql_mode": "PIPES_AS_CONCAT", "use_unicode": True,} + **{ + "charset": "utf8", + "sql_mode": "PIPES_AS_CONCAT", + "use_unicode": True, + } ) HIDEvent.create_table() for door in config.doors.values(): diff --git a/memberPlumbing/sqlExport.py b/memberPlumbing/sqlExport.py index 7978877..a3d5cc3 100755 --- a/memberPlumbing/sqlExport.py +++ b/memberPlumbing/sqlExport.py @@ -75,7 +75,11 @@ def main(): config = Config() database.init( **config.MEMBERSHIPWORKS_DB, - **{"charset": "utf8", "sql_mode": "PIPES_AS_CONCAT", "use_unicode": True,} + **{ + "charset": "utf8", + "sql_mode": "PIPES_AS_CONCAT", + "use_unicode": True, + } ) do_import(config)