def delete_crawler(crawler_id): u_id = request.cookies.get('u_id') CrawlerDao.delete(crawler_id, u_id) return jsonify(status="ok")
def tearDown(self): UserDao.delete(self.user_id) CrawlerDao.delete([self.c_id], self.user_id)