Skip to content

Commit

Permalink
fix rounding in inventory service
Browse files Browse the repository at this point in the history
  • Loading branch information
meln1k committed Sep 6, 2024
1 parent 7e026db commit 02d9e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixbackend/inventory/inventory_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ async def progress(
filter_group=filter_group,
aggregation=aggregation,
) as response:
entries = [int(r["v"]) async for r in response]
entries = [round(r["v"]) async for r in response]
if len(entries) == 0: # timeseries haven't been created yet
return not_exist, 0
elif len(entries) == 1: # the timeseries does not exist longer than the current period
Expand Down

0 comments on commit 02d9e9b

Please sign in to comment.