Skip to content

Commit

Permalink
Formatting and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline committed Mar 4, 2024
1 parent bb23cee commit 7878f82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dbtmetabase/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import click
import yaml

from dbtmetabase.core import DbtMetabase
from dbtmetabase.format import Filter, setup_logging
from .core import DbtMetabase
from .format import Filter, setup_logging


def _click_list_option_kwargs() -> Mapping[str, Any]:
Expand Down
8 changes: 4 additions & 4 deletions dbtmetabase/metabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ def find_dashboard(self, uid: str) -> Optional[Mapping]:
return None
raise

def format_dashboard_url(self, uid: str) -> str:
"""Formats URL link to a dashboard."""
return f"{self.url}/dashboard/{uid}"

def find_user(self, uid: str) -> Optional[Mapping]:
"""Finds user by ID or returns none."""
try:
Expand All @@ -177,10 +181,6 @@ def find_user(self, uid: str) -> Optional[Mapping]:
return None
raise

def format_dashboard_url(self, uid: str) -> str:
"""Formats URL link to a dashboard."""
return f"{self.url}/dashboard/{uid}"

def update_table(self, uid: str, body: Mapping) -> Mapping:
"""Posts update to an existing table."""
return dict(self._api("put", f"/api/table/{uid}", json=body))
Expand Down

0 comments on commit 7878f82

Please sign in to comment.