diff --git a/.gitignore b/.gitignore index 22d1be8bc..ec245bea3 100644 --- a/.gitignore +++ b/.gitignore @@ -175,7 +175,7 @@ Thumbs.db copy # Symlinks static ScoDoc -app/static/links/[0-9]*.*[0-9] +app/static/links/[0-9]*.* # Essais locaux xp/ diff --git a/app/__init__.py b/app/__init__.py index aab9ef3f5..b3944de7c 100755 --- a/app/__init__.py +++ b/app/__init__.py @@ -255,7 +255,7 @@ class ScoSMTPHandler(SMTPHandler): return subject -class ReverseProxied(object): +class ReverseProxied: """Adaptateur wsgi qui nous permet d'avoir toutes les URL calculées en https sauf quand on est en dev. La variable HTTP_X_FORWARDED_PROTO est positionnée par notre config nginx""" @@ -649,8 +649,6 @@ def scodoc_flash_status_messages(): def critical_error(msg): """Handle a critical error: flush all caches, display message to the user""" - import app.scodoc.sco_utils as scu - log(f"\n*** CRITICAL ERROR: {msg}") subject = f"CRITICAL ERROR: {msg}".strip()[:68] send_scodoc_alarm(subject, msg) diff --git a/app/scodoc/sco_edit_ue.py b/app/scodoc/sco_edit_ue.py index 48e1c90ac..40989539e 100644 --- a/app/scodoc/sco_edit_ue.py +++ b/app/scodoc/sco_edit_ue.py @@ -958,7 +958,10 @@ du programme" (menu "Semestre") si vous avez un semestre en cours); """ ) - H.append("