Procházet zdrojové kódy

La fonction "fetch_all_id" fonctionne et met à jour les chapitres de tout les mangas

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

+ 5
- 2
update_manga.py Zobrazit soubor

@@ -13,8 +13,11 @@ def fetch_all_id():
print("Recuperation des IDs")
cursor.execute("SELECT id FROM manga;")
rows = cursor.fetchall()


print("----- MISE A JOUR DES CHAPITRES -----")
for i in range(len(rows)):
print(rows[i][0])
update_manga(rows[i][0])
print("----- FIN -----")
def update_manga(id):
url = get_url(id)
# On récupère l'URL


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