chrisonntag / mmetering-server

Smart metering for community houses based on Python+Django, Redis, Celery and serial communication.
0 stars 0 forks source link

Remove MeterData save check #31

Closed chrisonntag closed 6 years ago

chrisonntag commented 6 years ago

In backend.serial, meter_data.save() was supposed to return True if the model has been saved. However, it doesn't and therefore, the log files contain irritating information.

if meter_data.save():
    meter_diagnose_str += ': saved'
else:
    meter_diagnose_str += ': not saved'