diff options
author | Sam Wenham <sam@wenhams.co.uk> | 2019-03-09 11:18:44 +0000 |
---|---|---|
committer | Sam Wenham <sam@wenhams.co.uk> | 2019-03-09 11:18:44 +0000 |
commit | 1bac650aeeb7db415df82a9dda7a457f451856d4 (patch) | |
tree | 2d6a26d05c685e2dd3419be0c6824c706f999b8f /core/views_logbooks.py | |
parent | 9fc80bed35a03295fad492601f802cab830144ae (diff) | |
download | troggle-1bac650aeeb7db415df82a9dda7a457f451856d4.tar.gz troggle-1bac650aeeb7db415df82a9dda7a457f451856d4.tar.bz2 troggle-1bac650aeeb7db415df82a9dda7a457f451856d4.zip |
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
Diffstat (limited to 'core/views_logbooks.py')
-rw-r--r-- | core/views_logbooks.py | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |