Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Straw man fix for gitcoin.co/townsquare?dressing=1 being hella flow #9250

Merged
merged 1 commit into from
Jul 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/townsquare/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_sidebar_tabs(request):
'title': f"Relationships",
'slug': key,
'helper_text': f'Activity from the users who you\'ve done business with Gitcoin',
'badge': max_of_ten(get_specific_activities(key, False, request.user, request.session.get(key, 0)).count()) if request.GET.get('tab') != key else 0
'badge': 0
}
tabs = [new_tab] + tabs
default_tab = 'my_tribes'
Expand All @@ -136,15 +136,15 @@ def get_sidebar_tabs(request):
'title': f'Grants',
'slug': key,
'helper_text': f'Activity on the Grants you\'ve created or funded.',
'badge': max_of_ten(get_specific_activities(key, False, request.user, request.session.get(key, 0)).count()) if request.GET.get('tab') != key else 0
'badge': 0,
}
tabs = [new_tab] + tabs
default_tab = 'grants'

num_favorites = request.user.favorites.filter(grant=None).all().count()
if num_favorites:
key = 'my_favorites'
activities = get_specific_activities(key, False, request.user, request.session.get(key, 0)).count()
activities = 0
new_tab = {
'title': f"My Favorites",
'slug': key,
Expand Down