Beispiel #1
0
 def get_by_wiki(self, citiao):
     tt = CabReply.select().where(CabReply.title == citiao).count()
     if tt == 0:
         return None
     else:
         self.update_view_count(citiao)
         return CabReply.get(CabReply.title == citiao)
Beispiel #2
0
 def get_reply_by_uid(self, reply_id):
     rec = CabReply.get(CabReply.uid == reply_id)
     return rec
Beispiel #3
0
 def get_reply_by_uid(self, reply_id):
     rec = CabReply.get(CabReply.uid == reply_id)
     return rec