Skip to content

Commit

Permalink
Only flag pacakges with same or lower pkgver
Browse files Browse the repository at this point in the history
Signed-off-by: Lars Rustand <rustand.lars@gmail.com>
  • Loading branch information
lrustand committed Aug 8, 2019
1 parent 566227f commit 17ce84a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/views/flag.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def flag(request, name, repo, arch):
return render(request, 'packages/flagged.html', {'pkg': pkg})

pkgs = find_same_pkgbase(pkg).filter(
flag_date__isnull=True)
flag_date__isnull=True,
pkgver__lte=pkg.pkgver)

authenticated = request.user.is_authenticated

Expand Down

0 comments on commit 17ce84a

Please sign in to comment.