Skip to content

Commit

Permalink
misc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goulinkh committed Nov 26, 2024
1 parent 717aaf4 commit 5da0bae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webapp/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@
# Manager Routes
# ===

# add jinja helper to either add or replace existing query parameter in the URL


def add_query_param(key, value):
"""
A jinja helper to upsert query parameter in the URL
"""
url = request.url
url_parts = list(urlparse(url))
query = dict(parse_qsl(url_parts[4]))
Expand Down

0 comments on commit 5da0bae

Please sign in to comment.