Selaa lähdekoodia

Fonction update_manga renommée en update_chap_manga

master
TheBidouilleur 2 viikkoa sitten
vanhempi
commit
aaca8f9830
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. +1
    -3
      update_manga.py

+ 1
- 3
update_manga.py Näytä tiedosto

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


Loading…
Peruuta
Tallenna