Skip to content

Commit

Permalink
Fix Dashboard Exposures Issue (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
yasminadimy authored Mar 28, 2024
1 parent 7803ae2 commit 7a98a24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbtmetabase/_exposures.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def extract_exposures(
continue

entity = dashboard_entity
cards = entity.get("ordered_cards", [])
cards = entity.get("dashcards", entity.get("ordered_cards", []))
if not cards:
continue

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/api/dashboard/1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": null,
"archived": false,
"collection_position": 1,
"ordered_cards": [
"dashcards": [
{
"sizeX": 18,
"series": [],
Expand Down

0 comments on commit 7a98a24

Please sign in to comment.