diff --git a/config.py.example b/config.py.example index 85c937ba913a16a015fda381c60f610e3e31dfee..91efe386b12cd80c55c5968664fe93ebcbb376d4 100644 --- a/config.py.example +++ b/config.py.example @@ -84,6 +84,8 @@ PAGE_DIFF = 3 # upcoming meetings within this number of days from today are shown on the index page MAX_INDEX_DAYS = 14 +MAX_PAST_INDEX_DAYS = 2 +MAX_PAST_INDEX_DAYS_BEFORE_REMINDER = 14 # mail to contact in case of complex errors ADMIN_MAIL = "admin@example.com" diff --git a/server.py b/server.py index 91da22f82444c3d1bfae9799fffd3d2aceb1756e..a429ca32db96a4da35dfc200ad601bac391a2bd3 100755 --- a/server.py +++ b/server.py @@ -159,6 +159,7 @@ def index(): protocol for protocol in protocols if not protocol.done and (protocol.date - current_day).days < config.MAX_INDEX_DAYS + and (current_day - protocol.date).days < config.MAX_PAST_INDEX_DAYS ], key=_protocol_sort_key )