From 4ee6dfdc9375c68a08fa74f80a305882031ca12b Mon Sep 17 00:00:00 2001 From: dgw Date: Thu, 5 Dec 2019 23:08:50 -0600 Subject: [PATCH] db: fix get_uri() to return the actual connection URI We can tweak the docstrings and/or attribute names for consistency later. The point is, the function should now work fine no matter the `db_type`. --- sopel/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel/db.py b/sopel/db.py index 471d035d8b..028fdc98cb 100644 --- a/sopel/db.py +++ b/sopel/db.py @@ -188,7 +188,7 @@ def execute(self, *args, **kwargs): def get_uri(self): """Returns a URL for the database, usable to connect with SQLAlchemy.""" - return 'sqlite:///{}'.format(self.filename) + return self.url # NICK FUNCTIONS