From ebcd595fdec474bdb23ac8c86be3eb62b9af2244 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Tue, 16 Feb 2021 16:26:07 +0100 Subject: [PATCH] Fixes bugs from paramecio2 --- paramecio/cromosoma/webmodel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paramecio/cromosoma/webmodel.py b/paramecio/cromosoma/webmodel.py index 446170a..d6801da 100644 --- a/paramecio/cromosoma/webmodel.py +++ b/paramecio/cromosoma/webmodel.py @@ -736,8 +736,8 @@ class WebModel: row=False else: if self.show_formatted: - for k, col in row.items(): - row[k]={k:self.fields[k].show_formatted(col) 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()} return row @@ -926,7 +926,7 @@ class WebModel: try: in_list[x]=str(int(in_list[x])) except: - in_list[x]=str(0) + in_list[x]='0' return '('+', '.join(in_list)+')' def check_in_list_str(self, field, in_list):