Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
abyesilyurt committed Sep 24, 2024
1 parent f5c0e8c commit 44f51a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/syft/src/syft/service/sync/resolve_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ def click_sync(self, *args: list, **kwargs: dict) -> SyftSuccess:
)

self.set_widget_result_state(res)
if self.on_sync_callback:
self.on_sync_callback()
# if self.on_sync_callback:
# self.on_sync_callback()
return res

@property
Expand Down
6 changes: 4 additions & 2 deletions packages/syft/src/syft/store/db/db.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# stdlib
import logging
from pathlib import Path
from typing import Generic
from typing import TypeVar
from urllib.parse import urlparse
Expand Down Expand Up @@ -41,9 +42,10 @@ def from_connection_string(cls, conn_str: str) -> "DBConfig":
database=parsed.path.lstrip("/"),
)
elif parsed.scheme == "sqlite":
return SQLiteDBConfig(path=parsed.path)
path = Path(parsed.path)
return SQLiteDBConfig(path=path.parent, filename=path.name)
else:
raise ValueError(f"Unsupported database scheme {parsed.scheme}")
raise ValueError(f"Unsupported database scheme: {parsed.scheme}")


ConfigT = TypeVar("ConfigT", bound=DBConfig)
Expand Down

0 comments on commit 44f51a9

Please sign in to comment.