From 1694e73f923005e42e0cf840201203eafb44bc96 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Sat, 10 Sep 2022 13:50:40 +0200 Subject: [PATCH] ui: Fix bid state filter selection. --- basicswap/http_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basicswap/http_server.py b/basicswap/http_server.py index 8a99e71..ea73800 100644 --- a/basicswap/http_server.py +++ b/basicswap/http_server.py @@ -461,7 +461,7 @@ class HttpHandler(BaseHTTPRequestHandler): ensure(sort_dir in ['asc', 'desc'], 'Invalid sort dir') filters['sort_dir'] = sort_dir 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: try: state = BidStates(state_ind)