def removeuserComment(userid, pic_id,comment_id): from models import removeComment if (userid>0 and pic_id>0): try: result=removeComment(userid, pic_id,comment_id) return result except: print (exc_info()) return False
def removeuserComment(userid, pic_id,comment_id): from models import removeComment,getPicComments if (userid>0 and pic_id>0): try: result=removeComment(userid, pic_id,comment_id) if result is True: newCommentlist=getPicComments(pic_id) return newCommentlist else: return None except: print (exc_info()) return None