From 06f20c6c554e40377b57649660d5e1acbda615ac Mon Sep 17 00:00:00 2001 From: Cinabre Date: Thu, 17 Dec 2020 01:18:18 +0100 Subject: [PATCH] Ajout de get_last_release() --- database.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/database.py b/database.py index 663cd2a..8ba0eef 100644 --- a/database.py +++ b/database.py @@ -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]