More save() -> update() cleanup
Use update() instead of for x in y: save(). Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
029359fdd5
commit
11e1c2ef82
@ -258,9 +258,7 @@ def flag(request, pkgid):
|
||||
# flag all architectures
|
||||
pkgs = Package.objects.filter(
|
||||
pkgname=pkg.pkgname, repo=pkg.repo)
|
||||
for package in pkgs:
|
||||
package.needupdate = 1
|
||||
package.save()
|
||||
pkgs.update(needupdate=True)
|
||||
|
||||
if not pkg.maintainer:
|
||||
toemail = 'arch-notifications@archlinux.org'
|
||||
|
Loading…
Reference in New Issue
Block a user