mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
float
This commit is contained in:
parent
621fb498c5
commit
5e9101242b
@ -158,7 +158,7 @@ class SpiceDB(object):
|
|||||||
.one_or_none()
|
.one_or_none()
|
||||||
# ChannelValue exists, update
|
# ChannelValue exists, update
|
||||||
if result:
|
if result:
|
||||||
result.value = result.value + float(value)
|
result.value = float(result.value) + float(value)
|
||||||
session.commit()
|
session.commit()
|
||||||
# DNE - Insert
|
# DNE - Insert
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user