Skip to content

Commit 8ed2865

Browse files
committed
chore: bump to v0.4.8.9
1 parent 7790c1b commit 8ed2865

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

app/src/utils/communication.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const getRealApiUrl = async(basePath: string, baseApiUrl: string) => {
175175
for (let i = basePathPart.length; i >= 0; i--) {
176176
possibleBasePaths.push(basePathPart.slice(0, i).join("/"));
177177
}
178-
const possibleApiUrls = possibleBasePaths.slice(0, 3).map(path => `${path.length === 0 ? '' : '/'}${path}/${baseApiUrl}`);
178+
const possibleApiUrls = possibleBasePaths.slice(0, 2).map(path => `${path.length === 0 ? '' : '/'}${path}/${baseApiUrl}`);
179179

180180
return (await Promise.all(possibleApiUrls.map(async(url) => {
181181
try {

examples/web_server_demo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def init_pygwalker_entity_map() -> Dict[str, PygWalker]:
5454
pygwalker_entity_map = init_pygwalker_entity_map()
5555

5656

57-
@app.post("/_pygwalker/comm/{gid}")
57+
# api path and html path need to have the same prefix
58+
@app.post("/pyg_html/_pygwalker/comm/{gid}")
5859
def pygwalker_comm(gid: str, payload: Dict[str, Any] = Body(...)):
5960
if gid not in pygwalker_entity_map:
6061
return {"success": False, "message": f"Unknown gid: {gid}"}
@@ -64,6 +65,7 @@ def pygwalker_comm(gid: str, payload: Dict[str, Any] = Body(...)):
6465
return JSONResponse(content=json.loads(json.dumps(result, cls=DataFrameEncoder)))
6566

6667

68+
# api path and html path need to have the same prefix
6769
@app.get("/pyg_html/{gid}")
6870
def pyg_html(gid: str):
6971
walker = pygwalker_entity_map[gid]

pygwalker/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pygwalker.services.global_var import GlobalVarManager
1111
from pygwalker.services.kaggle import show_tips_user_kaggle as __show_tips_user_kaggle
1212

13-
__version__ = "0.4.8.9a0"
13+
__version__ = "0.4.8.9"
1414
__hash__ = __rand_str()
1515

1616
from pygwalker.api.jupyter import walk, render, table

0 commit comments

Comments
 (0)