From 8e850de88f17c12f96756e8a637e258a5a393d27 Mon Sep 17 00:00:00 2001
From: XANTRONIX Industrial <xan@xantronix.com>
Date: Tue, 8 Apr 2025 23:17:48 -0400
Subject: [PATCH] Pass module name as parameter

---
 lib/xmet/db.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/xmet/db.py b/lib/xmet/db.py
index 4e18e27..9e8d5eb 100644
--- a/lib/xmet/db.py
+++ b/lib/xmet/db.py
@@ -112,7 +112,9 @@ class Database():
         db.row_factory = sqlite3.Row
         db.enable_load_extension(True)
 
-        db.execute("select load_extension('mod_spatialite.so.8')")
+        db.execute("select load_extension(:ext)", {
+            'ext': 'mod_spatialite.so.8'
+        })
 
         return Database(db)