From 45b7abd0fb84c365487b2590483ed699e8ebad1d Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 19 May 2024 17:58:50 +0800 Subject: [PATCH] Update sphinx_make.py --- plugins/sphinx/class/sphinx_make.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sphinx/class/sphinx_make.py b/plugins/sphinx/class/sphinx_make.py index bf2ed8b94..47e44393e 100644 --- a/plugins/sphinx/class/sphinx_make.py +++ b/plugins/sphinx/class/sphinx_make.py @@ -205,10 +205,10 @@ def makeSqlToSphinxDb(pdb, db, table = []): conf = '' for t in table: - pkey_name = getTablePk(pdb, db, table_name) + pkey_name = getTablePk(pdb, db, t) if pkey_name == '': continue - conf += makeSphinxDbSource(pdb, db, table_name, pkey_name) + conf += makeSphinxDbSource(pdb, db, t, pkey_name) if len(table) == 0: tables = pdb.query("show tables in "+ db)