From 0172cd302df9b5034c727566069ec1fcc7f31864 Mon Sep 17 00:00:00 2001 From: David Dias Horta Date: Sun, 5 Jan 2025 12:01:14 +0100 Subject: [PATCH] service, discord verification: show warning for new students in FS --- service/integration/discord/verifying_student.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/service/integration/discord/verifying_student.py b/service/integration/discord/verifying_student.py index 3fac4d8..fe950c2 100644 --- a/service/integration/discord/verifying_student.py +++ b/service/integration/discord/verifying_student.py @@ -95,7 +95,11 @@ def _generic_validation_error_message() -> str: Please try again or contact a STAIR member. """ # current month is july - september or december - february - if 7 <= datetime.now().month <= 9 or 12 <= datetime.now().month <= 2: + if ( + 7 <= datetime.now().month <= 9 + or 12 <= datetime.now().month + or datetime.now().month <= 2 + ): base += """ If you are a new student, please try again after the first week of the semester. """