Преглед изворни кода

Fonction update_manga renommée en update_chap_manga

master
TheBidouilleur пре 2 недеља
родитељ
комит
aaca8f9830
1 измењених фајлова са 1 додато и 3 уклоњено
  1. +1
    -3
      update_manga.py

+ 1
- 3
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)


Loading…
Откажи
Сачувај