mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-03 04:12:37 +02:00
Fix async problem on text load (#191)
This commit is contained in:
parent
26865a515c
commit
5770af51ef
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ class Api:
|
||||||
# Text is base64 encoded
|
# Text is base64 encoded
|
||||||
text = base64.b64decode(data["text"]).decode(charset)
|
text = base64.b64decode(data["text"]).decode(charset)
|
||||||
|
|
||||||
resp = asyncio.to_thread(
|
resp = await asyncio.to_thread(
|
||||||
self.text_out.send,
|
self.text_out.send,
|
||||||
None,
|
None,
|
||||||
TextDocument(
|
TextDocument(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue