Sfoglia il codice sorgente

Ajout de get_last_release()

master
TheBidouilleur 2 settimane fa
parent
commit
06f20c6c55
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      database.py

+ 5
- 0
database.py Vedi File

@@ -12,3 +12,8 @@ def get_dbtitle(mid):
cursor.execute("SELECT title FROM manga WHERE id = '%s';" % mid)
rows = cursor.fetchall()
return rows[0][0]

def get_last_release(mid):
cursor.execute("SELECT chap FROM manga WHERE id = '%s';" % mid)
rows = cursor.fetchall()
return rows[0][0]

Loading…
Annulla
Salva