1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-26 07:16:54 +01:00

Warning : removed the int to str cast for filter uid in update case

This commit is contained in:
prieto 2016-07-05 15:30:46 +02:00
commit b669ca8596

View file

@ -524,7 +524,7 @@ target to LeUpdateQuery constructor"
if target_class.initialized:
self.__leobject_instance_datas = target.datas(True)
else:
query_filters = [(target._uid[0], '=', str(target.uid()))]
query_filters = [(target._uid[0], '=', target.uid())]
super().__init__(target_class, query_filters)
@ -559,7 +559,7 @@ target to LeUpdateQuery constructor"
res_data.update(datas)
res_datas = self._target_class.prepare_datas(
res_data, True, True)
filters = [(uid_name, '=', str(res_data[uid_name]))]
filters = [(uid_name, '=', res_data[uid_name])]
res = self._rw_datasource.update(
self._target_class, filters, [],
res_datas)