diff options
Diffstat (limited to 'core/views/logbooks.py')
-rw-r--r-- | core/views/logbooks.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/views/logbooks.py b/core/views/logbooks.py index 5f560e8..75f5c7d 100644 --- a/core/views/logbooks.py +++ b/core/views/logbooks.py @@ -313,6 +313,7 @@ def logbookentry(request, date, slug): # start = time.time() trips = LogbookEntry.objects.filter(date=date) # all the trips not just this one this_logbookentry = trips.filter(date=date, slug=slug) + year = slug[:4] if this_logbookentry: if len(this_logbookentry) > 1: @@ -329,7 +330,8 @@ def logbookentry(request, date, slug): return render( request, "logbookentry.html", - {"logbookentry": this_logbookentry,"trips": trips, "svxothers": svxothers, "wallets": wallets}, + {"logbookentry": this_logbookentry,"trips": trips, + "svxothers": svxothers, "wallets": wallets, "year": year}, ) else: msg = f' Logbook entry slug:"{slug}" not found in database on date:"{date}" ' |