From 90cbbb0718dbfc1157a67d314ae2dd8225620688 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 23 Jul 2020 11:20:31 +0800 Subject: [PATCH] Update qbittorrent_worker.py --- plugins/qbittorrent/workers/qbittorrent_worker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/qbittorrent/workers/qbittorrent_worker.py b/plugins/qbittorrent/workers/qbittorrent_worker.py index d2c5a2e70..35a2880c4 100755 --- a/plugins/qbittorrent/workers/qbittorrent_worker.py +++ b/plugins/qbittorrent/workers/qbittorrent_worker.py @@ -164,7 +164,9 @@ class downloadBT(Thread): if not self.__conn(): return self.__db_err try: - result = self.dbcurr.execute(sql) + self.dbcurr.execute(sql) + self.dbcurr.execute('SELECT LAST_INSERT_ID();') + result = self.dbcurr.fetchone() self.dbconn.commit() self.__close() return result