some orm fixes

This commit is contained in:
2022-11-19 15:02:45 +03:00
parent 47b285f8ac
commit 56a1467d3c
4 changed files with 18 additions and 14 deletions

View File

@@ -12,7 +12,8 @@ class TopicStorage:
topics = session.query(Topic)
self.topics = dict([(topic.slug, topic) for topic in topics])
for tpc in self.topics.values():
self.load_parents(tpc)
# self.load_parents(tpc)
pass
print("[zine.topics] %d precached" % len(self.topics.keys()))
@@ -64,4 +65,4 @@ class TopicStorage:
self = TopicStorage
async with self.lock:
self.topics[topic.slug] = topic
self.load_parents(topic)
# self.load_parents(topic)