diff --git a/cara/apps/calculator/model_generator.py b/cara/apps/calculator/model_generator.py index 72c90967..9cdd21fe 100644 --- a/cara/apps/calculator/model_generator.py +++ b/cara/apps/calculator/model_generator.py @@ -92,7 +92,7 @@ class FormData: # I multiply the opening width by the number of windows to simulate the correct window area if self.event_type == 'single_event': month_number = int(self.single_event_date.split('/')[1]) - month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][month_number] + month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][month_number - 1] else: month = self.recurrent_event_month[:3]