Commit b705d457 by aa.gusti

perbaikan detable

1 parent 808b8a58
...@@ -430,9 +430,8 @@ class BaseView(object): ...@@ -430,9 +430,8 @@ class BaseView(object):
if k in select_list.keys(): if k in select_list.keys():
vals = select_list[k] vals = select_list[k]
for r in vals: for r in vals:
if r[0] == res[k]: if r and str(r) == str(res[k]):
res[k] = r[1] res[k] = vals[r]
""
# for k, v in d.items(): # for k, v in d.items():
# if k in url and v: # if k in url and v:
# link = "/".join([self.home, nik_url, v]) # link = "/".join([self.home, nik_url, v])
......
...@@ -428,7 +428,7 @@ class DeTable(field.Field): ...@@ -428,7 +428,7 @@ class DeTable(field.Field):
html += f'placeholder="{f.title}" {txt}/>' html += f'placeholder="{f.title}" {txt}/>'
html += '<option value="">Semua</option>' html += '<option value="">Semua</option>'
if type(wg_select_val) == list: if type(wg_select_val) == list:
wg_select_val = dict(list) wg_select_val = dict(wg_select_val)
for key in wg_select_val: for key in wg_select_val:
html += f'<option value="{key}">{wg_select_val[key]}</option>' html += f'<option value="{key}">{wg_select_val[key]}</option>'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!