Skip to content

Commit

Permalink
one more fix for activities on orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed May 21, 2019
1 parent 9b04e6e commit 2591972
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/assets/v2/css/profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ a:hover .avatar_edit .avatar_edit_text {
margin-right: auto;
margin-left: auto;
border-radius: 100%;
min-height: 3.125rem;
}

.profile-bounties .bounty_row {
Expand Down
7 changes: 3 additions & 4 deletions app/dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2640,12 +2640,11 @@ def get_various_activities(self, network='mainnet'):
if not self.is_org:
all_activities = self.activities
else:
# orgs
url = self.github_url
all_activities = Activity.objects.filter(
Q(bounty__github_url__startswith=url) |
Q(tip__github_url__startswith=url) |
Q(grant__isnull=False) |
Q(subscription__isnull=False)
Q(bounty__github_url__istartswith=url) |
Q(tip__github_url__istartswith=url)
)

all_activities = all_activities.filter(
Expand Down

0 comments on commit 2591972

Please sign in to comment.