[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] Really limit the number of results as said in t
From: |
gael . utard |
Subject: |
[Maposmatic-dev] [PATCH] Really limit the number of results as said in the comment above. |
Date: |
Fri, 6 Aug 2010 11:24:50 +0200 |
From: Gaël Utard <address@hidden>
Signed-off-by: Gaël Utard <address@hidden>
---
www/maposmatic/feeds.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/www/maposmatic/feeds.py b/www/maposmatic/feeds.py
index 8a33805..a43b8fa 100644
--- a/www/maposmatic/feeds.py
+++ b/www/maposmatic/feeds.py
@@ -62,7 +62,7 @@ class MapsFeed(Feed):
return (models.MapRenderingJob.objects
.filter(status=2)
.filter(resultmsg='ok')
- .order_by('-endofrendering_time'))
+ .order_by('-endofrendering_time')[:10])
# Not sure what to do if we still don't have any items at this point.
--
1.7.0.4
- [Maposmatic-dev] [PATCH] Really limit the number of results as said in the comment above.,
gael . utard <=