Grow the Reading.degrees_f column

sometimes a probe will report a wacky temperature, but we should record
it even so
This commit is contained in:
Lance Edgar 2017-08-05 12:54:08 -05:00
parent ad03e32f77
commit 5d81ac19a6
3 changed files with 36 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
@ -151,7 +151,7 @@ class Reading(Base):
cascade='all, delete-orphan'))
taken = sa.Column(sa.DateTime(), nullable=False, default=datetime.datetime.utcnow)
degrees_f = sa.Column(sa.Numeric(precision=7, scale=4), nullable=False)
degrees_f = sa.Column(sa.Numeric(precision=8, scale=4), nullable=False)
def __str__(self):
return str(self.degrees_f)