Skip to content

Commit a22f908

Browse files
Merge pull request #306 from AndreWohnsland/dev
Fix not showing exported data in UI
2 parents bae9089 + 4b874a4 commit a22f908

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/data_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ def _extract_data(data: list[list]):
9393
# first is the Names, with the first column being the date
9494
names = data[0][1::]
9595
# second is resettable data
96-
# data comes from csv, so it is str, need to convert to int
96+
# data comes from csv, so it is str, need to convert to float
9797
since_reset = data[1][1::]
98-
since_reset = [int(x) for x in since_reset]
98+
since_reset = [float(x) for x in since_reset]
9999
# third is life time data
100100
all_time = data[2][1::]
101-
all_time = [int(x) for x in all_time]
101+
all_time = [float(x) for x in all_time]
102102

103103
# Extract both into a dict containing name: quant
104104
# using only quantities greater than zero

0 commit comments

Comments
 (0)