changeset 16:d74597d6ae5a

updating whoisi db also includes updating entries for all 'following' now.
author Atul Varma <varmaa@toolness.com>
date Sun, 03 Jan 2010 00:46:47 -0800
parents f0dd39b7cbe1
children 6e01f65bb3e8
files publish_edition.py
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/publish_edition.py	Sun Jan 03 00:37:00 2010 -0800
+++ b/publish_edition.py	Sun Jan 03 00:46:47 2010 -0800
@@ -44,13 +44,16 @@
 
     if update_whoisi:
         wicache.update()
-        save(people, WHOISI_FILENAME)
-
-    #wicache.refresh_people([people.index(person)])
 
     following = [person for person in people
                  if person['name'] in names]
 
+    if update_whoisi:
+        people_indexes = [people.index(person)
+                          for person in following]
+        wicache.refresh_people(people_indexes)
+        save(people, WHOISI_FILENAME)
+
     feeds = {}
 
     for person in following: