##// END OF EJS Templates
Sort favorite and hidden tags when updating the list
neko259 -
r789:22849630 default
parent child Browse files
Show More
@@ -79,7 +79,6 b' class SettingsManager:'
79 79 for tag_name in tag_names:
80 80 tag = get_object_or_404(Tag, name=tag_name)
81 81 tags.append(tag)
82
83 82 return tags
84 83
85 84 def add_fav_tag(self, tag):
@@ -89,6 +88,8 b' class SettingsManager:'
89 88 else:
90 89 if not tag.name in tags:
91 90 tags.append(tag.name)
91
92 tags.sort()
92 93 self.set_setting(SETTING_FAVORITE_TAGS, tags)
93 94
94 95 def del_fav_tag(self, tag):
@@ -114,6 +115,8 b' class SettingsManager:'
114 115 else:
115 116 if not tag.name in tags:
116 117 tags.append(tag.name)
118
119 tags.sort()
117 120 self.set_setting(SETTING_HIDDEN_TAGS, tags)
118 121
119 122 def del_hidden_tag(self, tag):
General Comments 0
You need to be logged in to leave comments. Login now