From d4c36fefc3e0d6e8e60fe365b95f7768595b4922 Mon Sep 17 00:00:00 2001 From: Hydrus Date: Wed, 3 Jul 2013 16:39:13 -0500 Subject: [PATCH] Version 75 deleted parent fix --- help/changelog.html | 1 + include/ClientConstants.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/help/changelog.html b/help/changelog.html index d6ae8b0b..aa7a8c1a 100755 --- a/help/changelog.html +++ b/help/changelog.html @@ -25,6 +25,7 @@
  • deleted tags will now always show in manage tags dialog
  • fixed the various problems that were stopping DELETED->PENDING->CURRENT working for tags
  • fixed the children can only have one parent bug
  • +
  • fixed a deleted tag parents bug
  • a little counting logic improved in the special deleted_pending case
  • fixed a typo re uploading file to a repo
  • main guis statusbar now has a little 'db locked' indicator
  • diff --git a/include/ClientConstants.py b/include/ClientConstants.py index 7a5c21d9..e84cd3ce 100755 --- a/include/ClientConstants.py +++ b/include/ClientConstants.py @@ -2745,13 +2745,13 @@ class TagParentsManager(): service_identifiers_to_statuses_to_pairs = wx.GetApp().Read( 'tag_parents' ) - self._parents = collections.defaultdict( dict ) + self._parents = collections.defaultdict( HC.default_dict_set ) for ( service_identifier, statuses_to_pairs ) in service_identifiers_to_statuses_to_pairs.items(): pairs = statuses_to_pairs[ HC.CURRENT ].union( statuses_to_pairs[ HC.PENDING ] ) - self._parents[ service_identifier ] = HC.BuildKeyToListDict( pairs ) + self._parents[ service_identifier ] = HC.BuildKeyToSetDict( pairs ) t_s_p = list( self._tag_service_precedence )