Limit amount of historical data loaded on start

This commit is contained in:
Odd Stråbø 2023-12-12 11:32:45 +01:00
parent 33acd05b8a
commit 5524d16f68

View file

@ -54,7 +54,9 @@ def main():
consumer.write(res)
del extra
for i in range(days):
# Historical data isn't actually used anywhere yet
# Limit to 4 days for now
for i in range(min(days, 4)):
hist = cc.get_historical(i)
res = hist.as_dict()
log({i: res})