Skip to content

Commit 7739c76

Browse files
committed
Fix indentation and aggregate past bucket, delete old aggregates
1 parent 8b1dd11 commit 7739c76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async def _aggregate_prices(self):
116116
(ONE_WEEK, 5 * 365 * ONE_DAY), # weekly for 5 years
117117
]
118118

119-
async with self.pool.acquire() as conn:
119+
async with self.pool.acquire() as conn:
120120
for duration, max_age in buckets:
121121
now = int(time.time())
122122
bucket_start = (now // duration) * duration - duration

0 commit comments

Comments
 (0)