Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhou committed Apr 5, 2024
1 parent 4f174ba commit 57cba27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/util/url_query_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def slider_wrapper_for_url_query(st_prefix, label, min_value, max_value, key, de
# Parse range from URL, compatible with both one or two values
if key in st.query_params:
parse_range_from_url = [type(min_value)(v) for v in st.query_params.get_all(key)]
if len(parse_range_from_url) == 1:
parse_range_from_url = parse_range_from_url[0]

return st_prefix.slider(
label,
Expand Down

0 comments on commit 57cba27

Please sign in to comment.