Skip to content

Commit

Permalink
allow get_fields to be None
Browse files Browse the repository at this point in the history
  • Loading branch information
floptical committed Feb 8, 2024
1 parent 818237e commit bb16efb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions databridge_etl_tools/airtable/airtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@


class Airtable():
def __init__(self, app_id:str, api_key:str, table_name:str, s3_bucket:str, s3_key:str, get_fields:str):
def __init__(self, app_id:str, api_key:str, table_name:str, s3_bucket:str, s3_key:str, get_fields=None):
self.app_id = app_id
self.api_key = api_key
self.table_name = table_name
self.s3_bucket = s3_bucket
self.s3_key = s3_key
self.offset = None
self.rows_per_page = 1000
self.get_fields
self.get_fields = get_fields
self.csv_path = f'/tmp/{self.table_name}.csv'

def get_fieldnames(self):
Expand Down

0 comments on commit bb16efb

Please sign in to comment.