mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Added DB_HOST & DB_PORT
This commit is contained in:
2
config.json
vendored
2
config.json
vendored
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user