From 0b81e05919c492d2d182290bf48c2eba3a741826 Mon Sep 17 00:00:00 2001
From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de>
Date: Mon, 18 Jun 2018 15:05:38 +0200
Subject: [PATCH] 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.
---
 server.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/server.py b/server.py
index 4d1ad07..c4f063c 100755
--- a/server.py
+++ b/server.py
@@ -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)
 
-- 
GitLab