Little fixes in tests

This commit is contained in:
Antonio de la Rosa 2017-06-25 05:32:24 +02:00
parent b7920fa350
commit 0b2ecfc986
2 changed files with 21 additions and 1 deletions

View file

@ -854,7 +854,14 @@ class WebModel:
except:
in_list[x]=str(0)
return '('+', '.join(in_list)+')'
def check_in_list_str(self, field, in_list):
for x in range(0, len(in_list)):
in_list[x]=self.fields[field].check(in_list[x])
return '("'+'", "'.join(in_list)+'")'
def set_order(self, order:dict) -> object:
arr_order=[]