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()