Exemplo n.º 1
0
 def getSpecificDepthPosts(self, fingerprint, depth):
     posts = Hermes.fetchDescendantPosts(fingerprint, depth)
     returnList = []
     if posts.__len__() == 1:
         return "[]"
     else:
         for post in posts:
             postJSON = ujson.dumps(post[0].asDict(), ensure_ascii=False)
             returnList.append(postJSON)
         return ujson.dumps(returnList, ensure_ascii=False)
Exemplo n.º 2
0
 def getSpecificDepthPosts(self, fingerprint, depth):
     posts = Hermes.fetchDescendantPosts(fingerprint, depth)
     returnList = []
     if posts.__len__() == 1:
         return "[]"
     else:
         for post in posts:
             postJSON = ujson.dumps(post[0].asDict(), ensure_ascii=False)
             returnList.append(postJSON)
         return ujson.dumps(returnList, ensure_ascii=False)