main.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:FSND_Multi_User_Blog 作者: harrystaley 项目源码 文件源码
def post_likes(self, post_id):
        # gets the metadata about the datastor
        kinds = metadata.get_kinds()
        # checks to see if any likes exist and if so displays them
        if u'PostLike' in kinds:
            likes = db.GqlQuery("SELECT * "
                                "FROM PostLike "
                                "WHERE ANCESTOR IS :1",
                                post_key(post_id)).count()
        else:
            likes = 0
        return likes
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号