def showOpenDB(self):
filePath = AskFile(0, "*.db", "Open DB")
if filePath is None:
return
connect = sqlite3.connect(filePath)
cursor = connect.cursor()
cursor.execute('SELECT db_id FROM frl_desc')
db_id = cursor.fetchone()[0]
if db_id is None:
fl_log("FridaLink: DB ID in [%s] is None\n" % filePath)
return
if db_id in self.dbList:
dlg = AskYN(0, "DB ID (%s) from [%s] aleady exists\nReload DB?" % (db_id, filePath))
if dlg != 1:
return
self.dbList[db_id] = DBEntry(db_id, connect)
fl_log("FridaLink: DB loaded [ %s | %s ]\n" % (db_id, filePath))
评论列表
文章目录