Skip to content

Commit cdec174

Browse files
committed
added check to exclude closed patches
1 parent ff3fe8a commit cdec174

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pgcommitfest/commitfest/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,14 @@ def me(request):
9696
LEFT JOIN commitfest_patch_authors pa ON pa.patch_id=poc.patch_id
9797
LEFT JOIN commitfest_patch_reviewers pr ON pr.patch_id=poc.patch_id
9898
WHERE commitfest_id=%(id)s
99+
AND
100+
ps.status NOT IN ( %(patch_stat_committed)s, %(patch_stat_rejected)s, %(patch_stat_withdrawn)s )
99101
AND (
100102
pa.user_id=%(user_id)s
101103
OR pr.user_id=%(user_id)s
102104
)
103105
GROUP BY ps.status ORDER BY ps.sortkey""",
104-
{"id": cf.id, "user_id": request.user.id},
106+
{"id": cf.id, "user_id": request.user.id, "patch_stat_committed": PatchOnCommitFest.STATUS_COMMITTED, "patch_stat_rejected": PatchOnCommitFest.STATUS_REJECTED, "patch_stat_withdrawn": PatchOnCommitFest.STATUS_WITHDRAWN}
105107
)
106108
statussummary = curs.fetchall()
107109

0 commit comments

Comments
 (0)