changeset 37:dfe399e0b67e

Small code cleanup.
author Martin Geisler <mg@daimi.au.dk>
date Wed, 20 Feb 2008 13:02:01 +0100
parents ec341fb94853
children 65041ee232ea
files update_news.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/update_news.py	Wed Feb 20 13:00:49 2008 +0100
+++ b/update_news.py	Wed Feb 20 13:02:01 2008 +0100
@@ -109,9 +109,10 @@
     #tip_age = age(repository_data.entries[0].updated_parsed)
     #now = strftime("%Y-%m-%d %H:%M UTC", gmtime())
 
-    repository_entries = repository_data.entries[:4]
+    count = 4
+    repository_entries = repository_data.entries[:count]
     viff_devel_entries = [e for e in viff_devel_data.entries
-                          if e.author != "viff-devel< at >viff.dk"][:4]
+                          if e.author != "viff-devel< at >viff.dk"][:count]
 
     logging.info("Rendering news.html")
     loader = TemplateLoader(['.'])