Apply minor formatting changes from black
This commit is contained in:
parent
a2dd00f414
commit
cfccc433dd
@ -171,10 +171,10 @@ class MembershipWorks:
|
|||||||
# TODO: has issues with aliasing header names:
|
# TODO: has issues with aliasing header names:
|
||||||
# ex: "Personal Studio Space" Label vs Membership Addon/Field
|
# ex: "Personal Studio Space" Label vs Membership Addon/Field
|
||||||
def get_members(self, folders, columns):
|
def get_members(self, folders, columns):
|
||||||
""" Pull the members csv from the membershipworks api
|
"""Pull the members csv from the membershipworks api
|
||||||
folders: a list of the names of the folders to get
|
folders: a list of the names of the folders to get
|
||||||
(see folder_map in this function for mapping to ids)
|
(see folder_map in this function for mapping to ids)
|
||||||
columns: which columns to get"""
|
columns: which columns to get"""
|
||||||
ids = self.get_member_ids(folders)
|
ids = self.get_member_ids(folders)
|
||||||
|
|
||||||
# get members CSV
|
# get members CSV
|
||||||
@ -195,10 +195,10 @@ class MembershipWorks:
|
|||||||
def get_transactions(self, start_date, end_date, json=False):
|
def get_transactions(self, start_date, end_date, json=False):
|
||||||
"""Get the transactions between start_date and end_date
|
"""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,
|
json gets a different version of the transactions list,
|
||||||
which contains a different set information
|
which contains a different set information
|
||||||
"""
|
"""
|
||||||
r = self._get(
|
r = self._get(
|
||||||
BASE_URL + "csv",
|
BASE_URL + "csv",
|
||||||
|
@ -97,7 +97,11 @@ def main():
|
|||||||
config = Config()
|
config = Config()
|
||||||
database.init(
|
database.init(
|
||||||
**config.HID_DB,
|
**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()
|
HIDEvent.create_table()
|
||||||
for door in config.doors.values():
|
for door in config.doors.values():
|
||||||
|
@ -75,7 +75,11 @@ def main():
|
|||||||
config = Config()
|
config = Config()
|
||||||
database.init(
|
database.init(
|
||||||
**config.MEMBERSHIPWORKS_DB,
|
**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)
|
do_import(config)
|
||||||
|
Reference in New Issue
Block a user