summaryrefslogtreecommitdiffstats
path: root/core/views/uploads.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-08-08 19:24:18 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-08-08 19:24:18 +0300
commitda8e22c85607681dd3bbda92bddf593139a11f0e (patch)
tree19716a2678959c4d35afd1a930a4d90e5ad622b3 /core/views/uploads.py
parent741754e676a7845990ebf24570cc919a906646cc (diff)
downloadtroggle-da8e22c85607681dd3bbda92bddf593139a11f0e.tar.gz
troggle-da8e22c85607681dd3bbda92bddf593139a11f0e.tar.bz2
troggle-da8e22c85607681dd3bbda92bddf593139a11f0e.zip
more
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r--core/views/uploads.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py
index 1ba5cf1..9bcce94 100644
--- a/core/views/uploads.py
+++ b/core/views/uploads.py
@@ -71,12 +71,12 @@ def logbookedit(request, year=None):
return render(request, "errors/generic.html", {"message": message})
else:
# validation all to be done yet..
- date = request.POST["date"].strip() # check valid and this year
- author = request.POST["author"].strip() # check against personexpedition
- others = request.POST["others"].strip() # check each against personexpedition
+ date = request.POST["date"].strip() # TODO check valid and this year
+ author = request.POST["author"].strip() # TODO check against personexpedition
+ others = request.POST["others"].strip() # TODO check each against personexpedition
place = request.POST["place"].strip().replace('-','=') # no hyphens !
title = request.POST["title"].strip()
- entry = request.POST["text"].strip() # get rid of trailing spaces
+ entry = request.POST["text"].strip()
entry = entry.replace('\r','') # remove HTML-standard CR inserted
entry = entry.replace('\n\n','\n<br /><br />\n') # replace 2 \n with <br><br>
entry = entry.replace('<p','<br /><br') # replace <p> tag, even if it has attributes, with <br><br>