Commit 0277d087 authored by OzzieIsaacs's avatar OzzieIsaacs

Merged #123.

Thanks @idalin.
I think this solves permanently sending to kindle issues like (#94)
parent c98617a1
...@@ -2136,7 +2136,6 @@ def upload(): ...@@ -2136,7 +2136,6 @@ def upload():
db.session.connection().connection.connection.create_function("title_sort", 1, db.title_sort) db.session.connection().connection.connection.create_function("title_sort", 1, db.title_sort)
db.session.connection().connection.connection.create_function('uuid4', 0, lambda: str(uuid4())) db.session.connection().connection.connection.create_function('uuid4', 0, lambda: str(uuid4()))
if request.method == 'POST' and 'btn-upload' in request.files: if request.method == 'POST' and 'btn-upload' in request.files:
file = request.files['btn-upload']
file = request.files['btn-upload'] file = request.files['btn-upload']
if '.' in file.filename: if '.' in file.filename:
file_ext = file.filename.rsplit('.', 1)[-1].lower() file_ext = file.filename.rsplit('.', 1)[-1].lower()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment