浏览代码

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)


正在加载...
取消
保存