# HG changeset patch # User Jeff Hammel # Date 1293584398 28800 # Node ID 84344f9ed3f87d0dbcbe27993cf77883e60f0755 # Parent fc09a7ffb76721de0c4b2a0473b69a23c7c82589 handle startup case diff -r fc09a7ffb767 -r 84344f9ed3f8 svgsitemap/middleware.py --- a/svgsitemap/middleware.py Tue Dec 28 16:51:24 2010 -0800 +++ b/svgsitemap/middleware.py Tue Dec 28 16:59:58 2010 -0800 @@ -149,6 +149,7 @@ edge.attr['label'] = str(count) else: self.edges[(from_url, to_url)] = 1 + self.max = 1 self.graph.add_edge(from_url, to_url, label='1') for edge in self.graph.edges():