settings: fixed a bug if update a hash setting with an empty dict

parent 6ec23394
......@@ -469,7 +469,8 @@ class HashSetting(object):
@write_decorator_dict
def update(self,values):
cnx = self._cnx()
cnx.hmset(self._name,values)
if values:
cnx.hmset(self._name,values)
def items(self):
values = self.get_all()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment