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

Skip to content

Commit cf2f74a

Browse files
committed
most of Andrew's comments
1 parent 6b51071 commit cf2f74a

File tree

3 files changed

+166
-116
lines changed

3 files changed

+166
-116
lines changed

plotly/api/v2/dashboards.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,19 @@ def list():
2323
return request('get', url)
2424

2525

26-
def retrieve(fid, share_key=None):
26+
def retrieve(fid):
2727
"""Retrieve a dashboard from Plotly."""
2828
url = build_url(RESOURCE, id=fid)
2929
return request('get', url)
3030

3131

32-
def update(fid):
32+
def update(fid, content):
3333
"""Completely update the writable."""
3434
url = build_url(RESOURCE, id=fid)
3535
return request('put', url)
3636

3737

38-
def partial_update(fid):
39-
"""Partially update the writable."""
40-
url = build_url(RESOURCE, id=fid)
41-
return request('patch', url)
42-
43-
4438
def schema():
4539
"""Retrieve the dashboard schema."""
46-
url = build_url(RESOURCE, id='schema')
40+
url = build_url(RESOURCE, route='schema')
4741
return request('get', url)

0 commit comments

Comments
 (0)