do not round if not value #060149

This commit is contained in:
Àngel Àlvarez 2022-07-06 10:52:16 +02:00
parent 92309d3968
commit dd7ca9af4b
1 changed files with 2 additions and 1 deletions

View File

@ -162,7 +162,8 @@ class QualityTest(metaclass=PoolMeta):
if not key:
continue
values[key] = round(line.value, _WINE_DIGITS)
if line.value:
values[key] = round(line.value, _WINE_DIGITS)
values[key + '_comment'] = line.internal_description
values[key + '_confirm'] = today
values[key + '_success'] = line.success