We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beb2c1a commit 8fce9bdCopy full SHA for 8fce9bd
biasanalyzer/database.py
@@ -1,6 +1,6 @@
1
# ruff: noqa: S608
2
import gc
3
-import sys
+import platform
4
from datetime import datetime
5
from typing import Optional
6
@@ -338,7 +338,7 @@ def _initialize(self, db_url):
338
339
# Handle DuckDB connection
340
try:
341
- if sys.platform.startswith("win"): # pragma: no cover
+ if platform.system().lower() == "windows": # pragma: no cover
342
# it is critical to set duckdb connection to be read-only on windows platform
343
self.engine = duckdb.connect(db_url, read_only=True)
344
else:
0 commit comments