Skip to content

Commit 74655f0

Browse files
authored
fix: Fix duckdb module check in _viz.py (#1034)
The duckdb module changed from `"duckdb"` to `"_duckdb"` Closes #1020
1 parent fe4e1f7 commit 74655f0

File tree

2 files changed

+2139
-1653
lines changed

2 files changed

+2139
-1653
lines changed

lonboard/_viz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@ def create_layers_from_data_input(
260260

261261
# duckdb DuckDBPyRelation
262262
if (
263-
data.__class__.__module__.startswith("duckdb")
263+
"duckdb" in data.__class__.__module__
264264
and data.__class__.__name__ == "DuckDBPyRelation"
265265
):
266266
return _viz_duckdb_relation(data, **kwargs) # type: ignore
267267

268268
if (
269-
data.__class__.__module__.startswith("duckdb")
269+
"duckdb" in data.__class__.__module__
270270
and data.__class__.__name__ == "DuckDBPyConnection"
271271
):
272272
raise TypeError(DUCKDB_PY_CONN_ERROR)

0 commit comments

Comments
 (0)