From 2265e2113a1711877af5ef49de8bedac52081c19 Mon Sep 17 00:00:00 2001 From: Cinabre Date: Wed, 16 Dec 2020 18:52:32 +0100 Subject: [PATCH] =?UTF-8?q?La=20fonction=20"fetch=5Fall=5Fid"=20fonctionne?= =?UTF-8?q?=20et=20met=20=C3=A0=20jour=20les=20chapitres=20de=20tout=20les?= =?UTF-8?q?=20mangas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_manga.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/update_manga.py b/update_manga.py index 54eac9a..aeb2fe0 100644 --- a/update_manga.py +++ b/update_manga.py @@ -13,8 +13,11 @@ def fetch_all_id(): print("Recuperation des IDs") cursor.execute("SELECT id FROM manga;") rows = cursor.fetchall() - - + print("----- MISE A JOUR DES CHAPITRES -----") + for i in range(len(rows)): + print(rows[i][0]) + update_manga(rows[i][0]) + print("----- FIN -----") def update_manga(id): url = get_url(id) # On récupère l'URL