Commit 356c288a authored by jdoerrie's avatar jdoerrie Committed by Commit Bot

[my_activity] Fix Filtering of Gerrit Reviews

This change fixes the filtering of Gerrit Reviews. Prior to this change
authored Changes were duplicated in the list of Reviews.

Bug: NONE
Change-Id: If0dceb3dc24ed12f039a9549ec22b9b78c3d80dd
Reviewed-on: https://chromium-review.googlesource.com/1145381Reviewed-by: 's avatarSergiy Byelozyorov <sergiyb@chromium.org>
Reviewed-by: 's avatarJochen Eisinger <jochen@chromium.org>
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
parent 7e3c67f2
......@@ -688,7 +688,7 @@ class MyActivity(object):
gerrit_instances)
rietveld_reviews = itertools.chain.from_iterable(rietveld_reviews.get())
gerrit_reviews = itertools.chain.from_iterable(gerrit_reviews.get())
gerrit_reviews = [r for r in gerrit_reviews if r['owner'] != self.user]
gerrit_reviews = [r for r in gerrit_reviews if not self.match(r['owner'])]
self.reviews = list(rietveld_reviews) + list(gerrit_reviews)
def print_reviews(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment