Commit 0b81e059 authored by Robin Sonnabend's avatar Robin Sonnabend

Do not mark protocols as done if an attachment is uploade for them

While this could have been useful, nobody uses attachments like that.
Especially, people like to upload files on the day of the meeting (but
in advance), thereby involuntarily marking the protocol as done.
parent c4315d71
......@@ -1439,8 +1439,6 @@ def upload_document(protocol):
protocol, document, filename)
document.filename = internal_filename
file.save(os.path.join(config.DOCUMENTS_PATH, internal_filename))
if datetime.now().date() >= protocol.date:
protocol.done = True
db.session.commit()
return back.redirect("show_protocol", protocol_id=protocol.id)
......
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