From 041932536f3a146f27d98ee21a51ca6dcc908142 Mon Sep 17 00:00:00 2001 From: owocki Date: Mon, 9 Mar 2020 08:02:28 -0600 Subject: [PATCH] make fix, kudos sync not required --- app/app/context.py | 4 +++- app/retail/templates/newkudos.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/app/context.py b/app/app/context.py index 35b2923055c..a179d777869 100644 --- a/app/app/context.py +++ b/app/app/context.py @@ -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: diff --git a/app/retail/templates/newkudos.html b/app/retail/templates/newkudos.html index a73d5c62cfc..7018c77ecb9 100644 --- a/app/retail/templates/newkudos.html +++ b/app/retail/templates/newkudos.html @@ -114,7 +114,7 @@
{% if is_staff %}
- +