Skip to content

Commit

Permalink
fix to allow interface_http to set filters to zero length strings
Browse files Browse the repository at this point in the history
  • Loading branch information
paddywwoof committed Sep 17, 2024
1 parent 69402a2 commit e41d78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picframe/interface_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def do_GET(self): # noqa: C901
for subkey in self.server._setters:
message[subkey] = getattr(self.server._controller, subkey)
elif key in dir(self.server._controller):
if value != "": # parse_qsl can return empty string for value when just querying
if value != "" or key in ("subdirectory", "location_filter", "tags_filter"): # parse_qsl can return empty string for value when just querying
lwr_val = value.lower()
if lwr_val in ("true", "on", "yes"): # this only works for simple values *not* json style kwargs # noqa: E501
value = True
Expand Down

0 comments on commit e41d78a

Please sign in to comment.