summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-07 22:47:48 +0200
committerDusty Phillips <buchuki@gmail.com>2008-10-07 22:47:48 +0200
commitc8549029ec0b103c932c62f1919f6ba263b0c7ef (patch)
tree96efb6d82a71a961a0e59335edf40939f8bb73e6 /packages
parent0d83b7add1aceeb604f2a1b204c8d731a7ef7a88 (diff)
downloadarchweb-c8549029ec0b103c932c62f1919f6ba263b0c7ef.tar.gz
archweb-c8549029ec0b103c932c62f1919f6ba263b0c7ef.tar.xz
fix the last update script
Diffstat (limited to 'packages')
-rw-r--r--packages/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/views.py b/packages/views.py
index 544ab01..fdc3f05 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -8,7 +8,7 @@ from django.contrib.auth.models import User
from django.contrib.admin.widgets import AdminDateWidget
from django.views.generic import list_detail
from django.db.models import Q
-from datetime import datetime
+import datetime
from archweb_dev.main.utils import render_response
from archweb_dev.main.models import Package, PackageFile
from archweb_dev.main.models import Arch, Repo, Signoff
@@ -114,8 +114,8 @@ def search(request, page=None):
packages = packages.filter(q)
if form.cleaned_data['last_update']:
lu = form.cleaned_data['last_update']
- packages = packages.filter(last_update_gte=
- datetime.datetime(lu.year, lu.month, lu.day, 0, 0)
+ packages = packages.filter(last_update__gte=
+ datetime.datetime(lu.year, lu.month, lu.day, 0, 0))
else:
form = PackageSearchForm()
@@ -183,7 +183,7 @@ def search(request, page=None):
results = results.filter(needupdate=1)
if lastupdate:
results = results.filter(
- last_update__gte=datetime(
+ last_update__gte=datetime.datetime(
int(lastupdate[0:4]),
int(lastupdate[5:7]),
int(lastupdate[8:10])))