summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/match_up/model.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/match_up/model.py b/src/match_up/model.py
index b11622d..396c188 100644
--- a/src/match_up/model.py
+++ b/src/match_up/model.py
@@ -47,8 +47,8 @@ class PlayerList:
guest_count: dict = {1: 0, 3: 0, 5: 0}
def __init__(self, csv_location=None) -> None:
- with path("match_up") as p:
- self.db_location = join(p, "players.db")
+ with path("match_up", "players.db") as p:
+ self.db_location = p
db_file_found = True
if not isfile(self.db_location):
db_file_found = False
@@ -60,7 +60,7 @@ class PlayerList:
_init_random_database(self.session)
def _init_database(self):
- engine = create_engine("sqlite:///" + self.db_location)
+ engine = create_engine("sqlite:///" + str(self.db_location))
BASE.metadata.create_all(bind=engine)
self.session = sessionmaker(bind=engine)()