Skip to content

Commit

Permalink
Fix Metabase schema sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Gouline committed Feb 19, 2020
1 parent ae931aa commit 0c9d873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbtmetabase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .dbt import DbtReader
from .metabase import MetabaseClient

__version__ = '0.1.5'
__version__ = '0.1.6'

def export(dbt_path: str,
mb_host: str, mb_user: str, mb_password: str,
Expand Down
2 changes: 1 addition & 1 deletion dbtmetabase/metabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def sync_and_wait(self, database: str, schema: str, models: list, timeout = 30)
logging.critical("Cannot find database by name %s", database)
return

self.api('post', f'/api/database/{database_id}/sync')
self.api('post', f'/api/database/{database_id}/sync_schema')

deadline = int(time.time()) + timeout
sync_successful = False
Expand Down

0 comments on commit 0c9d873

Please sign in to comment.