Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf49b6c

Browse files
committed
Merge pull request plotly#162 from plotly/fix_grid_url
Fix grid url for when `plotly_domain` is different than `plotly_api_domain`
2 parents e5a3b31 + a64b172 commit cf49b6c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

plotly/plotly/plotly.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -840,15 +840,13 @@ def upload(cls, grid, filename,
840840

841841
response_columns = res['file']['cols']
842842
grid_id = res['file']['fid']
843+
grid_url = res['file']['web_url']
843844

844845
# mutate the grid columns with the id's returned from the server
845846
cls._fill_in_response_column_ids(grid, response_columns, grid_id)
846847

847848
grid.id = grid_id
848849

849-
plotly_domain = get_config()['plotly_domain']
850-
grid_url = '{0}/~{1}'.format(plotly_domain, grid_id.replace(':', '/'))
851-
852850
if meta is not None:
853851
meta_ops.upload(meta, grid=grid)
854852

plotly/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.4.8'
1+
__version__ = '1.4.9'

0 commit comments

Comments
 (0)