From c69c556dca6a87551df2b954cc42f790af9d39aa Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Wed, 1 Jul 2009 19:46:45 +0000 Subject: [PATCH] Bug fixes --- create-topo-attributes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/create-topo-attributes.py b/create-topo-attributes.py index f0c95e2..2fe6ee3 100755 --- a/create-topo-attributes.py +++ b/create-topo-attributes.py @@ -119,8 +119,8 @@ class Slice: else: record['node_id'] = None tag = Slicetag(record) - slicetags[id] = tag - self.slice_tag_ids.append(id) + slicetags[tag.id] = tag + self.slice_tag_ids.append(tag.id) tag.changed = True tag.updated = True return tag @@ -297,8 +297,8 @@ def get_slice_tags(): Find a free EGRE key """ def free_egre_key(slicetags): + used = set() for i in slicetags: - used = set() tag = slicetags[i] if tag.tagname == 'egre_key': used.add(int(tag.value)) -- 2.43.0