Fixed history
This commit is contained in:
parent
74e094e0cf
commit
b0841841b1
1 changed files with 0 additions and 4 deletions
|
@ -6,8 +6,4 @@ def get_recent_entries(path: str, count: int) -> list[dict]:
|
||||||
with open(path, "r") as f:
|
with open(path, "r") as f:
|
||||||
reader = csv.DictReader(f)
|
reader = csv.DictReader(f)
|
||||||
entries = list(reader)
|
entries = list(reader)
|
||||||
entries = [
|
|
||||||
{"timestamp": entry[0], "temperature": entry[1], "humidity": entry[2]}
|
|
||||||
for entry in entries
|
|
||||||
]
|
|
||||||
return entries[-count:]
|
return entries[-count:]
|
||||||
|
|
Loading…
Reference in a new issue