[password-resets] We also need a custom port
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [password-resets] We also need a custom port
- Date: Thu, 12 Nov 2020 17:11:33 +0000 (UTC)
commit 5f36ee3dadc0072340e92e0e73a99cef85cc23ca
Author: Andrea Veri <averi redhat com>
Date: Thu Nov 12 18:11:20 2020 +0100
We also need a custom port
db/base.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/db/base.py b/db/base.py
index 82a1ab3..721c5c9 100644
--- a/db/base.py
+++ b/db/base.py
@@ -6,10 +6,11 @@ from sqlalchemy.orm import sessionmaker, scoped_session
import os
-DATABASE = 'mysql+pymysql://%s:%s@%s/%s?charset=utf8' % (
+DATABASE = 'mysql+pymysql://%s:%s@%s:%i/%s?charset=utf8' % (
os.environ.get('DATABASE_USERNAME'),
os.environ.get('DATABASE_PASSWORD'),
os.environ.get('DATABASE_HOST'),
+ os.environ.get('DATABASE_PORT'),
os.environ.get('DATABASE_NAME'),
)
@@ -27,4 +28,4 @@ Session = scoped_session(
)
)
-Base = declarative_base()
\ No newline at end of file
+Base = declarative_base()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]