Skip to content

Commit

Permalink
comment based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Jun 16, 2021
1 parent 8bd4a92 commit affebdf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/retail/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,9 +760,11 @@ def get_specific_activities(what, trending_only, user, after_pk, request=None):
# create diff filters
activities = Activity.objects.filter(hidden=False).order_by('-created_on').exclude(pin__what__iexact=what)

network = request.GET.get('network', 'rinkeby')
network = request.GET.get('network', 'mainnet')
filter_network = 'rinkeby' if network == 'mainnet' else 'mainnet'

if 'grant:' in what:
activities = activities.exclude(subscription__network=network)
activities = activities.exclude(subscription__network=filter_network)

activities = activities.exclude(activity_type__in=only_profile_cards)
view_count_threshold = 10
Expand Down

0 comments on commit affebdf

Please sign in to comment.