summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-06 18:36:50 -0500
committerDan McGee <dan@archlinux.org>2010-07-06 18:36:50 -0500
commitfba1d29c1b8fcc58a5501aad206901e6217cd530 (patch)
tree9e4307e16ee0e9795a84b2f8bac657c3c5e0d1ec /devel
parent145b80d0c6c466b08caf094df14d74ae56235151 (diff)
Update code to use new flag_date column
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r--devel/management/commands/reporead.py2
-rw-r--r--devel/views.py2
2 files changed, 2 insertions, 2 deletions
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(