Skip to content

Commit

Permalink
fix: making things easier to test on staging
Browse files Browse the repository at this point in the history
  • Loading branch information
gdixon committed Nov 20, 2021
1 parent 96e3eae commit b3cab77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/townsquare/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def get_offers(request):
offers_by_category = {}
available_offers = Offer.objects.current()

if request.user.is_authenticated:
if request.user.is_authenticated and request.user.profile:
available_offers = available_offers.exclude(actions__profile=request.user.profile, actions__what__in=['click', 'decline', 'go'])
for key in ['top', 'secret', 'random', 'weekly', 'monthly']:
next_time_available = get_next_time_available(key)
Expand Down

0 comments on commit b3cab77

Please sign in to comment.