From 99745da9987e3e0f6670590004cf5f0a183ec52f Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 16 Jul 2010 20:46:46 +0000 Subject: [PATCH] only attempt to remove top level authorities (pointer == -1) --- sfa/server/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfa/server/interface.py b/sfa/server/interface.py index 65b8d835..a2ef36e9 100644 --- a/sfa/server/interface.py +++ b/sfa/server/interface.py @@ -153,9 +153,9 @@ class Interfaces(dict): # get hrns that actually exist in the db table = SfaTable() - records = table.find({'type': type}) + records = table.find({'type': type, 'pointer': -1}) hrns_found = [record['hrn'] for record in records] - + # remove old records for record in records: if record['hrn'] not in hrns_expected: -- 2.43.0