Added DB_HOST & DB_PORT

This commit is contained in:
Mike Young
2019-12-15 12:13:20 -05:00
parent 9cf5680cc8
commit 86455438fa
2 changed files with 4 additions and 0 deletions

2
config.json vendored
View File

@@ -2,6 +2,8 @@
"TITLE": "pyShelf E-Book Server",
"VERSION": "0.3.0",
"BOOKPATH": "books/",
"DB_HOST": "localhost",
"DB_PORT": "5432",
"DATABASE": "pyshelf",
"USER": "pyshelf",
"PASSWORD": "pyshelf",

View File

@@ -24,6 +24,8 @@ class Config:
self.catalogue_db = _data["DATABASE"]
self.user = _data["USER"]
self.password = _data["PASSWORD"]
self.db_host = _data["DB_HOST"]
self.db_port = _data["DB_PORT"]
self.file_array = [
self.book_shelf,
# self.catalogue_db,