diff iview.py @ 1:f914f08d69f5

Don't re-get series info if we already have it as it's very slow.
author Daniel O'Connor <darius@dons.net.au>
date Thu, 20 Aug 2009 17:33:35 +0930
parents fa7ca67af8c9
children f2e0787f52b8
line wrap: on
line diff
--- a/iview.py	Thu Aug 20 16:48:16 2009 +0930
+++ b/iview.py	Thu Aug 20 17:33:35 2009 +0930
@@ -76,6 +76,8 @@
         self.series = []
 
     def getSeries(self):
+        if len(self.series) > 0:
+            return
         # This can take ages
         print "Fetching series for channel " + self.name
         # Series is nested for some reason