-
+
+
Loading…
diff --git a/src/thoughtsync/saved_filters.py b/src/thoughtsync/saved_filters.py
index 0df3a3a..c9ef2a8 100644
--- a/src/thoughtsync/saved_filters.py
+++ b/src/thoughtsync/saved_filters.py
@@ -20,7 +20,7 @@ _ALLOWED_PARAM_KEYS = {
"q",
"color",
"kind",
- "labels",
+ "label", # matches the repeatable ?label= query param (stored as an array)
"has_reminder",
"has_attachment",
"created_after",
diff --git a/tests/test_saved_filters.py b/tests/test_saved_filters.py
index e95dbb5..d43b2ef 100644
--- a/tests/test_saved_filters.py
+++ b/tests/test_saved_filters.py
@@ -13,12 +13,12 @@ def test_clean_params_whitelists_facet_keys():
raw = {
"q": "hi",
"color": "yellow",
- "labels": ["a"],
+ "label": ["a"],
"has_reminder": True,
"junk": 1,
"__proto__": 2,
}
- assert clean_params(raw) == {"q": "hi", "color": "yellow", "labels": ["a"], "has_reminder": True}
+ assert clean_params(raw) == {"q": "hi", "color": "yellow", "label": ["a"], "has_reminder": True}
assert clean_params("nope") == {}
assert clean_params(None) == {}