Procházet zdrojové kódy

Fonction update_manga renommée en update_chap_manga

master
TheBidouilleur před 2 týdny
rodič
revize
aaca8f9830
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. +1
    -3
      update_manga.py

+ 1
- 3
update_manga.py Zobrazit soubor

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


Načítá se…
Zrušit
Uložit