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:
parent
ad03e32f77
commit
5d81ac19a6
3 changed files with 36 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue