return list

This commit is contained in:
Dima Gerasimov 2019-08-04 21:52:18 +01:00
parent 1d7c0905e1
commit a836cfccb5

View file

@ -72,9 +72,9 @@ def iter_points(dbs) -> Iterable[Point]:
# yield Point(dt=k, temp=v) # meh?
# TODO does it even have to be a dict?
@dictify(key=lambda p: p.dt)
# @dictify(key=lambda p: p.dt)
def get_temperature(backups=get_backup_files()):
yield from iter_points(backups)
return list(iter_points(backups))
def test():