From 1bac650aeeb7db415df82a9dda7a457f451856d4 Mon Sep 17 00:00:00 2001 From: Sam Wenham Date: Sat, 9 Mar 2019 11:18:44 +0000 Subject: There is no point having two functions do basicaly the same thing so make the load all logbooks call load logbook(expo) Remove the return message from load logbook as it isn't used --- core/views_logbooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/views_logbooks.py') diff --git a/core/views_logbooks.py b/core/views_logbooks.py index 9fcc3eb..3ab55d6 100644 --- a/core/views_logbooks.py +++ b/core/views_logbooks.py @@ -77,8 +77,8 @@ def expedition(request, expeditionname): message = "" if "reload" in request.GET: - message = LoadLogbookForExpedition(this_expedition) - return render_with_context(request,'expedition.html', {'expedition': this_expedition, 'expeditions':expeditions, 'personexpeditiondays':personexpeditiondays, 'message':message, 'settings':settings, 'dateditems': dateditems }) + LoadLogbookForExpedition(this_expedition) + return render_with_context(request,'expedition.html', {'expedition': this_expedition, 'expeditions':expeditions, 'personexpeditiondays':personexpeditiondays, 'settings':settings, 'dateditems': dateditems }) def get_absolute_url(self): return ('expedition', (expedition.year)) -- cgit v1.2.3