Merge pull request #2 from DataShades/rating-package-get-docstring
Add docstring for rating_package_get
This commit is contained in:
commit
94e3d383a6
|
@ -53,6 +53,16 @@ def rating_package_create(context, data_dict):
|
|||
|
||||
@toolkit.side_effect_free
|
||||
def rating_package_get(context, data_dict):
|
||||
'''
|
||||
Get the rating and count of ratings for a package.
|
||||
|
||||
Returns a dictionary containing rating and ratings counts.
|
||||
|
||||
:param package_id: the id of the package
|
||||
:type package_id: string
|
||||
:rtype: dictionary
|
||||
|
||||
'''
|
||||
package_id = data_dict.get('package_id')
|
||||
|
||||
error = None
|
||||
|
|
Loading…
Reference in New Issue