Minor tag hook fix
authorJack Miller <jack@codezen.org>
Tue, 16 Jun 2015 02:37:12 +0000 (21:37 -0500)
committerJack Miller <jack@codezen.org>
Tue, 16 Jun 2015 03:11:56 +0000 (22:11 -0500)
canto_curses/tag.py

index 420e5bc..2dbc2a6 100644 (file)
@@ -156,8 +156,8 @@ class Tag(PluginHandler, list):
                 break
 
     def on_items_added(self, tagcore, added):
-        cur_ids = self.get_ids()
         if tagcore == self.tagcore:
+            cur_ids = self.get_ids()
             for story_id in added:
                 if story_id not in cur_ids:
                     self.updates_pending += 1