Skip to content

Commit 8ff485c

Browse files
committed
fix issue #50
1 parent 7c11984 commit 8ff485c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

metabase_api/metabase_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ def __init__(self, domain, email=None, password=None, api_key=None, basic_auth=F
77
assert email is not None or api_key is not None
88
self.domain = domain.rstrip('/')
99
self.email = email
10-
self.auth = (self.email, self.password) if basic_auth and email else None
10+
self.auth = None
1111
if email:
1212
self.password = getpass.getpass(prompt='Please enter your password: ') if password is None else password
1313
self.session_id = None
1414
self.header = None
15+
if basic_auth:
16+
self.auth = (self.email, self.password)
1517
self.authenticate()
1618
else:
1719
self.header = {"X-API-KEY": api_key}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="metabase-api",
8-
version="0.3.3",
8+
version="0.3.3.1",
99
author="Vahid Vaezian",
1010
author_email="vahid.vaezian@gmail.com",
1111
description="A Python Wrapper for Metabase API",

0 commit comments

Comments
 (0)