Skip to content

Commit

Permalink
review_id argument in update function in db.review doesn't need to …
Browse files Browse the repository at this point in the history
…be keyword-only
  • Loading branch information
gentlecat committed Jun 30, 2017
1 parent f0d414a commit fa3a8b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions critiquebrainz/db/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ def get_count(*, is_draft=False, is_hidden=False):
return result.fetchone()[0]


def update(*, review_id, drafted, text, license_id=None,
language=None, is_draft=None):
"""Update contents of a review.
def update(review_id, *, drafted, text, license_id=None, language=None, is_draft=None):
# TODO: Get rid of `drafted` argument. This information about review should be retrieved inside this function.
"""Update a review.
Expand Down

0 comments on commit fa3a8b6

Please sign in to comment.