Exemple #1
0
    def create_post_history(raw_data):
        uid = tools.get_uuid()
        TabPostHist.create(
            uid=uid,
            title=raw_data.title,
            post_id=raw_data.uid,
            user_name=raw_data.user_name,
            cnt_md=raw_data.cnt_md,
            time_update=tools.timestamp(),
            logo=raw_data.logo,
        )

        return True
Exemple #2
0
 def create_post_history(raw_data, user_info):
     '''
     Create the history of certain post.
     '''
     uid = tools.get_uuid()
     TabPostHist.create(
         uid=uid,
         title=raw_data.title,
         post_id=raw_data.uid,
         user_name=user_info.user_name,
         cnt_md=raw_data.cnt_md,
         time_update=tools.timestamp(),
         logo=raw_data.logo,
     )
     return True