Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error tagsearch not working for public group #12

Merged
merged 2 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.1
4.2.0
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