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
This commit is contained in:
Sam Wenham
2019-03-09 11:18:44 +00:00
parent 9fc80bed35
commit 1bac650aee
3 changed files with 5 additions and 42 deletions

View File

@@ -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))