From aaca8f983048100153652f2bdee43f1daab1d609 Mon Sep 17 00:00:00 2001 From: Cinabre Date: Thu, 17 Dec 2020 10:16:53 +0100 Subject: [PATCH] =?UTF-8?q?Fonction=20update=5Fmanga=20renomm=C3=A9e=20en?= =?UTF-8?q?=20update=5Fchap=5Fmanga?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_manga.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/update_manga.py b/update_manga.py index aeb2fe0..c3ffde4 100644 --- a/update_manga.py +++ b/update_manga.py @@ -18,16 +18,14 @@ def fetch_all_id(): print(rows[i][0]) update_manga(rows[i][0]) print("----- FIN -----") -def update_manga(id): +def update_chap_manga(id): url = get_url(id) # On récupère l'URL - cursor.execute("SELECT chap FROM manga WHERE id = '%s'" % id) rows = cursor.fetchall() # Last_chapt est le dernier chapitre sauvegardé last_chapt = str(rows[0][0]) - new_chapt = get_last_chap(url) print("Mise a jour de %s" % get_title(url)) print("Le dernier chapitre est %s" % last_chapt)