This commit is contained in:
lrdossan 2024-07-18 12:19:41 +02:00
parent b3f7321a28
commit 3326c6234c
2 changed files with 2 additions and 2 deletions

View file

@ -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")

View file

@ -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],