diff --git a/dbtmetabase/metabase.py b/dbtmetabase/metabase.py index f880d79..b688b98 100644 --- a/dbtmetabase/metabase.py +++ b/dbtmetabase/metabase.py @@ -148,6 +148,7 @@ def __init__( exclude_sources {bool} -- Exclude exporting sources. (default: {False}) """ self.base_url = f"{'http' if use_http else 'https'}://{host}" + self.http_timeout = http_timeout self.session = requests.Session() self.session.verify = verify self.session.cert = cert @@ -166,7 +167,6 @@ def __init__( self.table_map: MutableMapping = {} self.models_exposed: List = [] self.native_query: str = "" - self.http_timeout = http_timeout # This regex is looking for from and join clauses, and extracting the table part. # It won't recognize some valid sql table references, such as `from "table with spaces"`. self.exposure_parser = re.compile(r"[FfJj][RrOo][OoIi][MmNn]\s+([\w.\"]+)")