diff options
Diffstat (limited to 'web-server/opendc/util/database.py')
| -rw-r--r-- | web-server/opendc/util/database.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/web-server/opendc/util/database.py b/web-server/opendc/util/database.py index 50bc93a8..12d6afc9 100644 --- a/web-server/opendc/util/database.py +++ b/web-server/opendc/util/database.py @@ -10,12 +10,15 @@ CONNECTION_POOL = None class Database: + """Object holding functionality for database access.""" def __init__(self): self.opendc_db = None def init_database(self, user, password, database, host): - user = urllib.parse.quote_plus(user) # TODO: replace this with environment variable - password = urllib.parse.quote_plus(password) # TODO: same as above + """Initializes the database connection.""" + + user = urllib.parse.quote_plus(user) + password = urllib.parse.quote_plus(password) database = urllib.parse.quote_plus(database) host = urllib.parse.quote_plus(host) |
