diff --git a/libs/DatabaseConnection.py b/libs/DatabaseConnection.py index b851cb9a..f70f40aa 100644 --- a/libs/DatabaseConnection.py +++ b/libs/DatabaseConnection.py @@ -103,7 +103,9 @@ def _sqlite(self): db_name = self.database if not len(db_name): db_name = "rtb" - return "sqlite:///%s.db" % db_name + if not db_name.endswith(".db"): + db_name = "%s.db" % db_name + return "sqlite:///%s" % db_name def _mysql(self): """ Configure db_connection for MySQL """