fix-topic

This commit is contained in:
2022-11-19 16:18:17 +03:00
parent 56a1467d3c
commit abfbb68ac3
2 changed files with 11 additions and 11 deletions

View File

@@ -17,15 +17,15 @@ class TopicStorage:
print("[zine.topics] %d precached" % len(self.topics.keys()))
@staticmethod
def load_parents(topic):
self = TopicStorage
parents = []
for parent in self.topics.values():
if topic.slug in parent.children:
parents.append(parent.slug)
topic.parents = parents
return topic
# @staticmethod
# def load_parents(topic):
# self = TopicStorage
# parents = []
# for parent in self.topics.values():
# if topic.slug in parent.children:
# parents.append(parent.slug)
# topic.parents = parents
# return topic
@staticmethod
async def get_topics_all():