指定题号编译pdf功能中用完数据库后关闭
This commit is contained in:
parent
61b32c7200
commit
577980cde6
|
|
@ -138,6 +138,7 @@ class MyWindow_xtby(QWidget,Ui_Form):
|
|||
mydb = connect(hostname = db_host, port = db_port, username=db_user, pwd=db_pwd, db = self.database_name)
|
||||
mycursor = mydb.cursor()
|
||||
pro_dict,obj_dict,bn_dict,unit_obj_dict = generateDictsfromMariaDB(mycursor)
|
||||
mydb.close()
|
||||
for p,IDs in self.TitleID_list:
|
||||
currentbodystring = f"\\section{{{p}}}\n\\begin{{enumerate}}\n\n"
|
||||
print(f"正在从数据库获取数据, 生成源代码...")
|
||||
|
|
|
|||
Reference in New Issue