Skip to content

Commit

Permalink
fixed forced recalculation of cleaning counter when setting last clea…
Browse files Browse the repository at this point in the history
…ning time
  • Loading branch information
motoz committed Nov 25, 2015
1 parent 63a7acf commit a01d000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pellmonsrv/plugins/cleaning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def setItem(self, item, value):
self.setItem('clean_time', s)
return 'OK'
elif item == 'clean_time':
self.items['clean_kg']['update_time'] = int(time.time())
self.items['clean_kg']['update_time'] = 0
if itemValues.has_key(item):
itemValues[item] = value
return 'OK'
Expand Down

0 comments on commit a01d000

Please sign in to comment.