From f5a475296e312e62e71cd23e8432aca2ab7874f8 Mon Sep 17 00:00:00 2001 From: Cinabre Date: Wed, 16 Dec 2020 19:33:31 +0100 Subject: [PATCH] Supression de la fonction "check_if_exist" car il y a un try/except --- create_manga.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/create_manga.py b/create_manga.py index 5ba3e6c..1dcdef0 100644 --- a/create_manga.py +++ b/create_manga.py @@ -7,10 +7,6 @@ cursor = conn.cursor() -def check_if_exit(url): - id = get_id(url) - - def create_manga(url): data = {"id" : get_id(url), "title" : get_title(url), @@ -24,7 +20,7 @@ def create_manga(url): print("Author : " + str(data["author"])) print("Link : " + url) print("Last chap : " + str(data["chap"])) - print("Image : " + str(get_img(url))) + print("Image : " + str(data["img"]) cursor.execute(""" INSERT INTO manga(id, title, author, url, chap, img) VALUES(:id, :title, :author, :url, :chap, :img)""", data) conn.commit()