From 4f5a78ca2c6734b70c37ee7b4716bcbf81f056da Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Sun, 30 Nov 2014 17:46:24 -0500 Subject: [PATCH] Add missing args param. --- endpoints/api/user.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/endpoints/api/user.py b/endpoints/api/user.py index 33c36cabf..427cb5887 100644 --- a/endpoints/api/user.py +++ b/endpoints/api/user.py @@ -694,11 +694,13 @@ class StarredRepositoryList(ApiResource): @parse_args @query_param('page', 'Offset page number. (int)', type=int) @query_param('limit', 'Limit on the number of results (int)', type=int) - def get(self): + def get(self, args): """ List all starred repositories. """ page = args['page'] limit = args['limit'] - starred_repos = list(get_user_starred_repositories(get_authenticated_user(), page=page, limit=limit)) + starred_repos = list(model.get_user_starred_repositories(get_authenticated_user(), + page=page, + limit=limit)) return {'repositories': [repo_view(repo) for repo in starred_repos]} @require_scope(scopes.READ_REPO)