From 55659e2d5665a0affac42c7899f9f27603b88132 Mon Sep 17 00:00:00 2001 From: Lenka Segura Date: Dec 17 2018 10:00:47 +0000 Subject: [PATCH 1/2] fix the rest of the worker dependencies for python3 --- diff --git a/dev/docker/worker b/dev/docker/worker index 0dbb9b8..c6d6ee7 100644 --- a/dev/docker/worker +++ b/dev/docker/worker @@ -5,8 +5,8 @@ VOLUME ["/repos"] RUN mkdir /code RUN dnf install -y python3-devel python3-setuptools python3-nose python3-bcrypt python3-alembic \ - python3-arrow python-binaryornot python-bleach python-blinker \ - python-chardet python-cryptography python-docutils python3-flask \ + python3-arrow python3-binaryornot python3-bleach python3-blinker \ + python3-chardet python3-cryptography python3-docutils python3-flask \ python3-flask-wtf python3-markdown python3-psutil \ python3-pygit2 python3-fedora python3-openid python3-openid-cla \ python3-openid-teams python3-straight-plugin python3-wtforms python3-munch \ From 897d33198c7e2e8f5235925c4803a8ce254628c5 Mon Sep 17 00:00:00 2001 From: Lenka Segura Date: Dec 17 2018 10:41:51 +0000 Subject: [PATCH 2/2] ignore case in status filtering --- diff --git a/pagure/lib/query.py b/pagure/lib/query.py index 790989f..6a8158c 100644 --- a/pagure/lib/query.py +++ b/pagure/lib/query.py @@ -3176,7 +3176,9 @@ def search_pull_requests( else: query = query.filter(model.PullRequest.status != "Open") else: - query = query.filter(model.PullRequest.status == status) + query = query.filter( + func.lower(model.PullRequest.status) == status.lower() + ) if assignee is not None: assignee = "%s" % assignee