From 6a6bcf39bcb14f95d3d9be8c0087e02203e2e136 Mon Sep 17 00:00:00 2001 From: Cinabre Date: Wed, 16 Dec 2020 18:03:23 +0100 Subject: [PATCH] =?UTF-8?q?Debut=20de=20la=20fonction=20fetch=5Fall=5Fid?= =?UTF-8?q?=20pour=20r=C3=A9cup=C3=A9rer=20tout=20les=20ID=20des=20mangas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_manga.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/update_manga.py b/update_manga.py index 66feb41..54eac9a 100644 --- a/update_manga.py +++ b/update_manga.py @@ -7,7 +7,13 @@ cursor = conn.cursor() def main(): #print("Pas de fonction Main") - update_manga(31477) + fetch_all_id() + +def fetch_all_id(): + print("Recuperation des IDs") + cursor.execute("SELECT id FROM manga;") + rows = cursor.fetchall() + def update_manga(id): url = get_url(id)