From bd13bd78adf7f147e416d8bedf72563ab98a6da6 Mon Sep 17 00:00:00 2001 From: allo Date: Sat, 10 Jun 2006 17:41:59 +0000 Subject: [PATCH] Bugfix for broken Tags git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2192 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/bookmarksDB.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/de/anomic/data/bookmarksDB.java b/source/de/anomic/data/bookmarksDB.java index 9a76513e6..2751ed642 100644 --- a/source/de/anomic/data/bookmarksDB.java +++ b/source/de/anomic/data/bookmarksDB.java @@ -245,7 +245,7 @@ public class bookmarksDB { } public void saveTag(Tag tag){ if(tag!=null){ - tagCache.put(tag.getTagName(), tag); + tagCache.put(tag.getTagHash(), tag); } } /** @@ -439,7 +439,7 @@ public class bookmarksDB { bookmarksDB.Tag tag=null; Iterator it=tags.iterator(); while(it.hasNext()){ - tag=getTag((String) it.next()); + tag=getTag( tagHash((String) it.next()) ); if(tag!=null){ tag.delete(urlHash); saveTag(tag); @@ -638,7 +638,7 @@ public class bookmarksDB { return urlHashes; } public boolean hasPublicItems(){ - Iterator it=getBookmarksIterator(this.getTagName(), false); + Iterator it=getBookmarksIterator(this.getTagHash(), false); if(it.hasNext()){ return true; } @@ -888,8 +888,8 @@ public class bookmarksDB { public void remove() { if (this.nextEntry != null) { try { - Object tagName = this.nextEntry.getTagName(); - if (tagName != null) removeTag((String) tagName); + String tagHash = (String)this.nextEntry.getTagHash(); + if (tagHash != null) removeTag((String) tagHash); } catch (kelondroException e) { //resetDatabase(); }