mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: depend on OutOfDateTS for flag state
It was found in the aur.al database that some records have a non-null flagger, but are not flagged. Using the flagger relationship, we were false redirecting away from the flag page. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
a445a40bea
commit
7618101b1b
2 changed files with 4 additions and 4 deletions
|
@ -804,7 +804,7 @@ def test_pkgbase_flag(client: TestClient, user: User, maintainer: User,
|
|||
pkgbase = package.PackageBase
|
||||
|
||||
# We shouldn't have flagged the package yet; assert so.
|
||||
assert pkgbase.Flagger is None
|
||||
assert pkgbase.OutOfDateTS is None
|
||||
|
||||
cookies = {"AURSID": user.login(Request(), "testPassword")}
|
||||
endpoint = f"/pkgbase/{pkgbase.Name}/flag"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue