Skip to content

Commit

Permalink
Fix removed field
Browse files Browse the repository at this point in the history
  • Loading branch information
vingerha committed May 12, 2024
1 parent f6dc791 commit 6c545a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/gazpar2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ def run(myParams):

for x in data:
try:
cursor.execute(f"UPDATE measures SET price= ( energyGrossConsumed * {myParams.priceKwhDefault} ) + {myParams.priceFixDefault} , priceKwh = 0")
cursor.execute(f"UPDATE measures SET price= ( energyGrossConsumed * {myParams.priceKwhDefault} ) + {myParams.priceFixDefault}")
myDb.commit()
except Exception as e:
logging.error("Writing Prices with default values, error: %s", e)
Expand Down

0 comments on commit 6c545a2

Please sign in to comment.