From b98ed272917e4e0790c03cf8759f40bab924b876 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 14 Sep 2020 05:52:00 -0700 Subject: [PATCH] Change url parameter /tags?synonyms -> include_synonyms. I keep forgetting that the url parameter name isn't the same as the python variable name. --- frontends/etiquette_flask/backend/endpoints/tag_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py b/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py index f80a1bd..2b02704 100644 --- a/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py +++ b/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py @@ -83,7 +83,7 @@ def get_tags_html(specific_tag_name=None): new_url = request.url.replace('/tag/' + specific_tag_name, '/tag/' + specific_tag.name) return flask.redirect(new_url) - include_synonyms = request.args.get('synonyms') + include_synonyms = request.args.get('include_synonyms') include_synonyms = include_synonyms is None or etiquette.helpers.truthystring(include_synonyms) if specific_tag is None: