set default filter to always return true

This commit is contained in:
Tagadda 2022-01-30 22:39:26 +00:00
parent f2b95e5fbe
commit 3de3205648

View file

@ -706,7 +706,7 @@ class Question:
self.ask = question.get("ask", {"en": self.name})
self.help = question.get("help")
self.redact = question.get("redact", False)
self.filter = question.get("filter", [])
self.filter = question.get("filter", "true")
# .current_value is the currently stored value
self.current_value = question.get("current_value")
# .value is the "proposed" value which we got from the user
@ -1143,6 +1143,7 @@ class AppQuestion(Question):
apps = app_list(full=True)["apps"]
if self.filter:
apps = [app for app in apps if evaluate_simple_js_expression(self.filter, context=app)]
def _app_display(app):