osclib/core: review_find_last(): compare by_user instead of who.

This commit is contained in:
Jimmy Berry 2019-05-01 15:04:10 -05:00
parent 34c99b699d
commit 860fcd0a60

View File

@ -624,9 +624,9 @@ def project_remote_apiurl(apiurl, project):
return apiurl, project
def review_find_last(request, who):
def review_find_last(request, user):
for review in reversed(request.reviews):
if review.who == who:
if review.by_user == user:
return review
return None