Skip to content

Commit

Permalink
make fix, kudos sync not required
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Mar 9, 2020
1 parent 8fe3893 commit 0419325
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/app/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def fetchPost(qt='2'):

@cached_as(Announcement.objects.filter(key__in=['footer', 'header']), timeout=1200)
def get_sitewide_announcements():
announcements = Announcement.objects.filter(key__in=['footer', 'header'], valid_to__gt=timezone.now(), valid_from__lt=timezone.now())
announcements = Announcement.objects.filter(
key__in=['footer', 'header'], valid_to__gt=timezone.now(), valid_from__lt=timezone.now()
)
announcement = announcements.filter(key='footer').first()
header_msg, footer_msg, nav_salt = '', '', 0
if announcement:
Expand Down
2 changes: 1 addition & 1 deletion app/retail/templates/newkudos.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h5>
<div class="terms_container pt-2">
{% if is_staff %}
<div class="form__checkbox">
<input name='mint_and_sync' id='mint_and_sync' type="checkbox" value=1 required />
<input name='mint_and_sync' id='mint_and_sync' type="checkbox" value=1 />
<label class="form__label" for=mint_and_sync>{% trans "ADMIN ONLY - mint+sync this kudos immediately" %}
</label>
</div>
Expand Down

0 comments on commit 0419325

Please sign in to comment.