From 57550af6c0e4b4db711b2e1c4bb6bbcd3f1d9a05 Mon Sep 17 00:00:00 2001 From: Jelte Fennema-Nio Date: Thu, 7 Aug 2025 21:59:24 +0200 Subject: [PATCH] Show draft patches in the correct section in the personal dashboard Draft patches would show up as requiring moving to a next commitfest. That's incorrect, they are fine where they are. --- pgcommitfest/commitfest/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pgcommitfest/commitfest/views.py b/pgcommitfest/commitfest/views.py index 215ffcb7..465e0f70 100644 --- a/pgcommitfest/commitfest/views.py +++ b/pgcommitfest/commitfest/views.py @@ -394,7 +394,7 @@ def patchlist(request, cf, personalized=False): EXISTS ( SELECT 1 FROM commitfest_patch_authors cpa WHERE cpa.patch_id=p.id AND cpa.user_id=%(self)s ) AND ( - poc.commitfest_id < %(cid)s + cf.status = %(closed_status)s ) THEN 'Your still open patches in a closed commitfest (you should move or close these)' WHEN @@ -422,6 +422,7 @@ def patchlist(request, cf, personalized=False): """ whereparams["needs_author"] = PatchOnCommitFest.STATUS_AUTHOR whereparams["needs_committer"] = PatchOnCommitFest.STATUS_COMMITTER + whereparams["closed_status"] = CommitFest.STATUS_CLOSED is_committer = bool(Committer.objects.filter(user=request.user, active=True)) whereparams["is_committer"] = is_committer