Skip to content

Commit

Permalink
changed post method to get
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-TBT committed Jun 1, 2024
1 parent cdbc4cc commit 4ebb743
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion omero_tagsearch/templates/omero_tagsearch/tagnav.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@

<div id="searching">
<div class="left_panel_inner">
<form id="tagSearchForm" action="{% url 'wtsimages' %}" method="post" class="standard_form">{% csrf_token %}
<form id="tagSearchForm" action="{% url 'wtsimages' %}" method="get" class="standard_form">{% csrf_token %}
<h2>{% trans "Tag Search" %}</h2>
{# {{ tagnav_form.as_p }} #}
{{ tagnav_form.non_field_errors }}
Expand Down
8 changes: 4 additions & 4 deletions omero_tagsearch/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ def tag_image_search(request, conn=None, **kwargs):
import time

start = time.time()
if request.method == "POST":
if request.method == "GET":

selected_tags = [int(x) for x in request.POST.getlist("selectedTags")]
excluded_tags = [int(x) for x in request.POST.getlist("excludedTags")]
operation = request.POST.get("operation")
selected_tags = [int(x) for x in request.GET.getlist("selectedTags")]
excluded_tags = [int(x) for x in request.GET.getlist("excludedTags")]
operation = request.GET.get("operation")

# validate experimenter is in the active group
active_group = (
Expand Down

0 comments on commit 4ebb743

Please sign in to comment.