From 8ba720ca39a98abde983147617b172b32fd5b613 Mon Sep 17 00:00:00 2001 From: Emmanuel Date: Mon, 14 Mar 2022 13:10:34 +0100 Subject: [PATCH] max size + message --- app/routes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index ee2d4b3..220ce70 100644 --- a/app/routes.py +++ b/app/routes.py @@ -9,9 +9,9 @@ bp = Blueprint("routes", __name__) # -------------------------------------------------------------- DIR = "/opt/installmgr/" REPOSIT_DIR = "/opt/installmgr/incoming_dumps" -MAX_REPOSIT_SIZE = 100 * 20 * 1024 # kB (here, max 100 dumps of 20MB) +MAX_REPOSIT_SIZE = 200 * 20 * 1024 # kB (here, max 200 dumps of 20MB) -ALERT_MAIL_FROM = "root@scodoc.iutv.univ-paris13.fr" +ALERT_MAIL_FROM = "root@scodoc.org" ALERT_MAIL_TO = "emmanuel.viennet@gmail.com" LOG_FILENAME = os.path.join(DIR, "upload-dump-errors.log") @@ -58,6 +58,7 @@ def upload_scodoc9(): "sco_subversion": request.form.get("sco_subversion", ""), "dump_filename": fulltime + "_" + clean_deptname + ".gz", "dump_size": len(data), + "message" : request.form.get("message", ""), "remote_addr": remote_addr, "remote_host": remote_host, }