Bugfix (last 10, not len(entries))

This commit is contained in:
Stefan Ritter 2009-12-03 14:53:21 +01:00
parent 6c778b2e8b
commit 6f50460eda
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ elif feed_display == "rss":
print '' print ''
j = len(entries) j = len(entries)
if j > 10: j = 10 if j > 10: j = 10
for i in xrange(0, len(entries)): for i in xrange(0, j):
title = str(entries[i][1]).replace('entries/', '', 1).replace('.' + entries_suffix, '') title = str(entries[i][1]).replace('entries/', '', 1).replace('.' + entries_suffix, '')
date = time.strftime("%a, %d %b %Y %H:%M:%S %z", time.gmtime(time.mktime(entries[i][0]))) date = time.strftime("%a, %d %b %Y %H:%M:%S %z", time.gmtime(time.mktime(entries[i][0])))
title_md5sum = generate_uuid(title) title_md5sum = generate_uuid(title)