changeset 12:a2bcd6a529b9

separate label getting from count
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 02 Jan 2011 11:46:38 -0800
parents 1ff7b363e89e
children 6cf3539cfa9c
files svgsitemap/middleware.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/svgsitemap/middleware.py	Sun Jan 02 11:44:46 2011 -0800
+++ b/svgsitemap/middleware.py	Sun Jan 02 11:46:38 2011 -0800
@@ -87,8 +87,8 @@
                 if self.exclude(edge[0], edge[1]):
                     self.graph.remove_edge(edge[0], edge[1])
                     continue
-                
-                count = int(edge.attr['label'])
+                label = edge.attr['label'])
+                count = int(label)
                 self.edges[(edge[0], edge[1])] = count
                 if count > self.max:
                     self.max = count