Skip to content

Commit 17ce84a

Browse files
committed
Only flag pacakges with same or lower pkgver
Signed-off-by: Lars Rustand <rustand.lars@gmail.com>
1 parent 566227f commit 17ce84a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/views/flag.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def flag(request, name, repo, arch):
8585
return render(request, 'packages/flagged.html', {'pkg': pkg})
8686

8787
pkgs = find_same_pkgbase(pkg).filter(
88-
flag_date__isnull=True)
88+
flag_date__isnull=True,
89+
pkgver__lte=pkg.pkgver)
8990

9091
authenticated = request.user.is_authenticated
9192

0 commit comments

Comments
 (0)