Skip to content

Commit 07662f9

Browse files
authored
Merge pull request #42 from vvaezian/dev
Fix issue #41
2 parents 9391f0b + eb4466a commit 07662f9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## Unreleased
1+
## 0.2.16
2+
### Changed
3+
- Fixed the issue #41 ([KeyError: 'sizeX'](https://github.com/vvaezian/metabase_api_python/issues/41))
24

35
## 0.2.15
46
### Changed

metabase_api/metabase_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ def copy_dashboard(self, source_dashboard_name=None, source_dashboard_id=None,
834834
new_card_id = card_id_mapping[card['card_id']]
835835
card_json = {}
836836
card_json['cardId'] = new_card_id
837-
for prop in ['visualization_settings', 'col', 'row', 'sizeX', 'sizeY', 'series', 'parameter_mappings']:
837+
for prop in ['visualization_settings', 'col', 'row', 'size_x', 'size_y', 'series', 'parameter_mappings']:
838838
card_json[prop] = card[prop]
839839
for item in card_json['parameter_mappings']:
840840
item['card_id'] = new_card_id

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.2.15",
8+
version="0.2.16",
99
author="Vahid Vaezian",
1010
author_email="vahid.vaezian@gmail.com",
1111
description="A Python Wrapper for Metabase API",

0 commit comments

Comments
 (0)