Mercurial > dandelion
changeset 496:1744dd3f724d
limit number of entries in rss feed
| author | sheep@ghostwheel |
|---|---|
| date | Sat, 11 Oct 2008 20:03:01 +0200 |
| parents | 9b7ec1e97234 |
| children | 98bf58771a61 |
| files | dandelion/history.py |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dandelion/history.py Sat Oct 11 12:28:15 2008 +0200 +++ b/dandelion/history.py Sat Oct 11 20:03:01 2008 +0200 @@ -85,7 +85,11 @@ def rss_action(wiki, request): changes = [] + count = 0 for page in wiki.history(): + count += 1 + if count > 10: + break if page.date is not None: change = { 'rev': page.rev,
