diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-07-20 17:11:23 +0200 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-07-20 17:11:23 +0200 |
commit | c95d86151676207756192d9cf9ffd75fb9823441 (patch) | |
tree | 5a8b9cb2a237a06641e09f08f104b4fab988625d /core/views/uploads.py | |
parent | afa8ff4f664ffc5a8c927c7718e9ed697fc7b9d5 (diff) | |
download | troggle-c95d86151676207756192d9cf9ffd75fb9823441.tar.gz troggle-c95d86151676207756192d9cf9ffd75fb9823441.tar.bz2 troggle-c95d86151676207756192d9cf9ffd75fb9823441.zip |
fixed orde rof author and others in log
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r-- | core/views/uploads.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py index 8b9656e..7ac43b5 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -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"' |