mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-14 13:57:45 +00:00
bugfix and docum
This commit is contained in:
@@ -52,9 +52,6 @@ def expedition(request, expeditionname):
|
||||
'''Returns a rendered page for one expedition, specified by the year e.g. '2019'.
|
||||
If page caching is enabled, it caches the dictionaries used to render the template page.
|
||||
|
||||
The cache is refreshed if '?reload' is present in the requesting URL, which also re-parses the logbook.
|
||||
By specifying a '0' for the expected number of entries in the logbook cache, this forces the parser to
|
||||
re-parse the original logbook HTML file.
|
||||
'''
|
||||
if request.user.is_authenticated:
|
||||
if "reload" in request.GET:
|
||||
@@ -68,7 +65,7 @@ def expedition(request, expeditionname):
|
||||
entry.delete()
|
||||
entries = this_expedition.logbookentry_set.all()
|
||||
print(f'! - expo {expeditionname} {len(entries)} entries after deletion')
|
||||
LoadLogbookForExpedition(this_expedition, 0) # 0 means re-parse as implies cache expected to be 0
|
||||
LoadLogbookForExpedition(this_expedition)
|
||||
logged_in = True
|
||||
else:
|
||||
logged_in = False
|
||||
|
||||
Reference in New Issue
Block a user