From 3326c6234cc652840400bbed481ae44f535c71e8 Mon Sep 17 00:00:00 2001 From: lrdossan Date: Thu, 18 Jul 2024 12:19:41 +0200 Subject: [PATCH] typo --- caimira/apps/calculator/static/js/co2_form.js | 2 +- caimira/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/caimira/apps/calculator/static/js/co2_form.js b/caimira/apps/calculator/static/js/co2_form.js index ee31c24e..fb45044b 100644 --- a/caimira/apps/calculator/static/js/co2_form.js +++ b/caimira/apps/calculator/static/js/co2_form.js @@ -74,7 +74,7 @@ function uploadFile(endpoint) { } } - const data = XLSX.utils.sheet_to_json(worksheet, { header: 1, raw: false }); + const data = XLSX.utils.sheet_to_json(worksheet, { header: 1, raw: true }); // Check if there is any data below the header row if (data.length <= 1) { $("#upload-error") diff --git a/caimira/models.py b/caimira/models.py index b22b7a5f..6127125a 100644 --- a/caimira/models.py +++ b/caimira/models.py @@ -1595,7 +1595,7 @@ class CO2DataModel: def max_occupancy_in_interval(start: float, stop: float) -> int: """ Given a certain ventilation interval, get the maximum number of - people in that period od time. + people in that period of time. """ max_people: int = 0 for i, (people_start, people_stop) in enumerate(zip(self.occupancy.transition_times[:-1],