From 6b8f71048acfa8f748d5ed92e7ed97d141d877a2 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Wed, 26 Jan 2022 17:46:54 +0100 Subject: [PATCH] Added covid level variable comments on the code for future reference. --- cara/apps/calculator/report_generator.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cara/apps/calculator/report_generator.py b/cara/apps/calculator/report_generator.py index ee33fbda..1a688cc5 100644 --- a/cara/apps/calculator/report_generator.py +++ b/cara/apps/calculator/report_generator.py @@ -307,11 +307,13 @@ class ReportGenerator: ) context['permalink'] = generate_permalink(base_url, self.calculator_prefix, form) context['calculator_prefix'] = self.calculator_prefix + + # For further information about these values visit https://gitlab.cern.ch/cara/cara/-/merge_requests/321. context['scale_warning'] = { - 'level': 'red-4', - 'risk': 'strong', - 'onsite_access': '4’000', - 'threshold': '5%' + 'level': 'red-4', # 'red-4' - 'orange-3' - 'yellow-2' - 'green-1' + 'risk': 'strong', # 'strong' - 'medium' - 'reduced' - '' + 'onsite_access': '4’000', # '4’000' - '5’000' - '6’500' - '8’000' + 'threshold': '5%' # '5%' - '' - '' - '' } return context