Skip to content

Commit

Permalink
Use textContent instead of innerText to get the SQL to execute.
Browse files Browse the repository at this point in the history
  • Loading branch information
rblank committed Sep 1, 2024
1 parent e0528cb commit b5b72d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.orig
__pycache__

_build/
dist/
tmp/
/_build/
/dist/
/node_modules/
/tmp/
1 change: 1 addition & 0 deletions .hgignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ __pycache__
syntax: regexp
^_build/
^dist/
^node_modules/
^tmp/
2 changes: 1 addition & 1 deletion tdoc/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from sphinx.util import logging

__project__ = 't-doc-common'
__version__ = '0.5'
__version__ = '0.6.dev1'

_common = pathlib.Path(__file__).absolute().parent
_root = _common.parent.parent
Expand Down
3 changes: 2 additions & 1 deletion tdoc/common/static/tdoc-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function execute(exec) {
console.error("<pre> element not found in node ", node);
continue;
}
await db.exec(pre.innerText, res => {
await db.exec(pre.textContent, res => {
if (res.columnNames.length === 0) return;
if (i < nodes.length - 1) return;
if (!results) {
Expand Down Expand Up @@ -125,6 +125,7 @@ async function execute(exec) {
msg = /^(SQLITE_ERROR: sqlite3 result code \d+: )?(.*)$/
.exec(e.result.message)[2]
} else {
console.error(e);
msg = e.toString();
}
results = element(`\
Expand Down

0 comments on commit b5b72d5

Please sign in to comment.