ui: Fix bid state filter selection.

This commit is contained in:
tecnovert 2022-09-10 13:50:40 +02:00
parent 146698425d
commit 1694e73f92
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93

View file

@ -461,7 +461,7 @@ class HttpHandler(BaseHTTPRequestHandler):
ensure(sort_dir in ['asc', 'desc'], 'Invalid sort dir') ensure(sort_dir in ['asc', 'desc'], 'Invalid sort dir')
filters['sort_dir'] = sort_dir filters['sort_dir'] = sort_dir
if have_data_entry(form_data, 'state'): if have_data_entry(form_data, 'state'):
state_ind = get_data_entry(form_data, 'state') state_ind = int(get_data_entry(form_data, 'state'))
if state_ind != -1: if state_ind != -1:
try: try:
state = BidStates(state_ind) state = BidStates(state_ind)