Commit 274c43f6 authored by dorothee.kueppers's avatar dorothee.kueppers
Browse files

fix for heroku?

parent 11f9b3d6
......@@ -39,10 +39,10 @@ def get_landing_page(request):
# settings.EMAIL_HOST_USER,
# ['DoroKueppers@web.de'],
# fail_silently=False)
try:
selection = Selection.objects.filter(active=True).latest('endtime')
except Model.DoesNotExist:
selection = None
# try:
selection = Selection.objects.filter(active=True).latest('endtime')
# except Model.DoesNotExist:
# selection = None
if selection is not None and selection.endtime > timezone.now():
running_selection = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment