mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-14 07:18:45 +00:00
fixed orde rof author and others in log
This commit is contained in:
@@ -243,9 +243,11 @@ def logbookedit(request, year=None, slug=None):
|
||||
No check is done on the other people on the trip as this is picked up anyway by parsing on import
|
||||
and we don't really care at this point.
|
||||
|
||||
If the author name is mispelled, noticed, and chnaged, then two logbook entries are created
|
||||
If the author name is mispelled, noticed, and changed, then two logbook entries are created
|
||||
with sequential slugs ...b ...c etc. This is because we are doing validation on GET not on POST
|
||||
and we are not rewriting the URL when a slug gets set. Hmm.
|
||||
|
||||
Normal use of this form is producing duplicate logbook entries.. why ?!
|
||||
"""
|
||||
def validate_year(year):
|
||||
try:
|
||||
@@ -358,6 +360,7 @@ def logbookedit(request, year=None, slug=None):
|
||||
print(f"- Rewriting the entire {year} logbook to disc ")
|
||||
filename= "logbook.html"
|
||||
try:
|
||||
print(f" - Logbook for {year} to be exported and written out.")
|
||||
writelogbook(year, filename) # uses a template, not the code fragment below which is just a visible hint to logged on user
|
||||
except:
|
||||
message = f'! - Logbook saving failed - \n!! Permissions failure ?! on attempting to save file "logbook.html"'
|
||||
|
||||
Reference in New Issue
Block a user