summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app.py8
-rw-r--r--passwords.txt3
2 files changed, 7 insertions, 4 deletions
diff --git a/app.py b/app.py
index feb54b5..43ce384 100644
--- a/app.py
+++ b/app.py
@@ -30,10 +30,10 @@ def create_database_connection():
Creates a database connection using the environment variables
:param: auth_append: str = "" - If you want to use a different set of variables for persisitance of sessions
"""
- hostname = "***REMOVED***"
- user = "***REMOVED***"
- password = "***REMOVED***"
- database = "postgres"
+ hostname = os.environ.get("POSTGRES_HOST")
+ user = os.environ.get("POSTGRES_USER")
+ password = os.environ.get("POSTGRES_PASSWORD")
+ database = os.environ.get("POSTGRES_DATABASE")
return PostgresHandler(host_name=hostname, username=user, password=password, database=database, port=5432)
@app.route("/")
diff --git a/passwords.txt b/passwords.txt
new file mode 100644
index 0000000..79d5880
--- /dev/null
+++ b/passwords.txt
@@ -0,0 +1,3 @@
+***REMOVED***
+***REMOVED***
+***REMOVED*** \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage