This repository was archived by the owner on Dec 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ def create(
1515 payout_id : str = None ,
1616 start : datetime = None ,
1717 end : datetime = None ,
18- include_child_accounts = False ,
19- custom_fields = None ,
18+ include_child_accounts = False ,
19+ custom_fields = None ,
2020 ):
21- """ Create a new export"""
21+ """Create a new export"""
2222 data = {
2323 "type" : export_type .value ,
2424 "include_child_accounts" : include_child_accounts ,
@@ -31,15 +31,18 @@ def create(
3131
3232 if end :
3333 data ["end" ] = int (end .timestamp ())
34-
34+
3535 if custom_fields :
3636 if isinstance (custom_fields , str ):
3737 data ["custom_fields" ] = custom_fields
3838 else :
3939 try :
4040 data ["custom_fields" ] = "," .join (custom_fields )
4141 except TypeError as e :
42- raise TypeError (f"Expected comma-separated string or an iterable yielding strings for custom_fields, got { type (custom_fields )} " ) from e
42+ raise TypeError (
43+ f"Expected comma-separated string or an iterable yielding "
44+ f"strings for custom_fields, got { type (custom_fields )} "
45+ ) from e
4346
4447 return self .request (self .EXPORTS_PATH ).set_body (data ).post ().expectJson (Export )
4548
You can’t perform that action at this time.
0 commit comments