def delete(self, del_id): try: del_count = CabMember.delete().where(CabMember.uid == del_id) del_count.execute() return True except: return False
def delete_by_user_name(self, user_name): try: del_count = CabMember.delete().where(CabMember.user_name == user_name) del_count.execute() return True except: return False