Fixes bugs from paramecio2

This commit is contained in:
Antonio de la Rosa 2021-02-16 16:26:07 +01:00
parent 2ddb0699ae
commit ebcd595fde

View file

@ -736,8 +736,8 @@ class WebModel:
row=False row=False
else: else:
if self.show_formatted: if self.show_formatted:
for k, col in row.items(): #for k, col in row.items():
row[k]={k:self.fields[k].show_formatted(col) for k,col in row.items()} row[k]={k:self.fields[k].show_formatted(col) for k,col in row.items()}
return row return row
@ -926,7 +926,7 @@ class WebModel:
try: try:
in_list[x]=str(int(in_list[x])) in_list[x]=str(int(in_list[x]))
except: except:
in_list[x]=str(0) in_list[x]='0'
return '('+', '.join(in_list)+')' return '('+', '.join(in_list)+')'
def check_in_list_str(self, field, in_list): def check_in_list_str(self, field, in_list):