diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-30 13:28:18 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:42:28 +0200 |
| commit | 9f87ab4bbab048b527585929135cab80fafd9ef9 (patch) | |
| tree | 835e41c1660ab12a2f3299049d2e15f8495d3b4b /web-server/opendc/util/database.py | |
| parent | 5c673272747ed14e5668b2f4301f0f853b400ee1 (diff) | |
Address a number of pylint issues
Diffstat (limited to 'web-server/opendc/util/database.py')
| -rw-r--r-- | web-server/opendc/util/database.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web-server/opendc/util/database.py b/web-server/opendc/util/database.py index 50bc93a8..09d241b5 100644 --- a/web-server/opendc/util/database.py +++ b/web-server/opendc/util/database.py @@ -10,10 +10,13 @@ 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): + """Initializes the database connection.""" + user = urllib.parse.quote_plus(user) # TODO: replace this with environment variable password = urllib.parse.quote_plus(password) # TODO: same as above database = urllib.parse.quote_plus(database) |
