From fba1d29c1b8fcc58a5501aad206901e6217cd530 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 6 Jul 2010 18:36:50 -0500 Subject: Update code to use new flag_date column Signed-off-by: Dan McGee --- devel/management/commands/reporead.py | 2 +- devel/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'devel') diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 62dce663..854b6322 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -151,7 +151,7 @@ def populate_pkg(dbpkg, repopkg, force=False, timestamp=None): pass if timestamp: - dbpkg.needupdate = False + dbpkg.flag_date = None dbpkg.last_update = timestamp dbpkg.save() diff --git a/devel/views.py b/devel/views.py index c600f089..5f4bcb94 100644 --- a/devel/views.py +++ b/devel/views.py @@ -25,7 +25,7 @@ pwletters = ascii_letters + digits def index(request): '''the Developer dashboard''' inner_q = PackageRelation.objects.filter(user=request.user).values('pkgbase') - flagged = Package.objects.select_related('arch', 'repo').filter(needupdate=True) + flagged = Package.objects.select_related('arch', 'repo').filter(flag_date__isnull=False) flagged = flagged.filter(pkgbase__in=inner_q) todopkgs = TodolistPkg.objects.select_related( -- cgit v1.2.3-2-g168b