From 6d6d7a117a7daeae984b109928933f2ad257f09c Mon Sep 17 00:00:00 2001 From: Pritam Sukumar Date: Thu, 2 Nov 2023 11:48:35 +0100 Subject: [PATCH 1/3] Update README.md to include link to ENV docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b1470c..42d845f 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ pip install pre-commit pre-commit install ``` -- Copy `.env.example` to `.env` and set all the environment variables as mentioned in `docs/ENV.md`. +- Copy `.env.example` to `.env` and set all the environment variables as mentioned in [`docs/ENV.md`](docs/ENV.md). ## Running locally From f48c4b2916bd3ca621abc5dffcccb591c09746fb Mon Sep 17 00:00:00 2001 From: Pritam Sukumar Date: Thu, 2 Nov 2023 11:50:23 +0100 Subject: [PATCH 2/3] Updated .env.example and README --- .env.example | 2 ++ docs/ENV.md | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.env.example b/.env.example index 7bb46c2..0dba97d 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,4 @@ JWT_SECRET_KEY="" DB_SERVICE_URL="" +DB_SERVICE_TOKEN="" + diff --git a/docs/ENV.md b/docs/ENV.md index e7c8a3d..9556c67 100644 --- a/docs/ENV.md +++ b/docs/ENV.md @@ -7,3 +7,7 @@ This is a string of random characters that will be used to encrypt the access an ### `DB_SERVICE_URL` The URL to connect to our database service + +### `DB_SERVICE_TOKEN` + +Token to authenticate DB service \ No newline at end of file From e94e776721128b4f9be313427c2b3d32ff7d42be Mon Sep 17 00:00:00 2001 From: Krrupa <25496389+sudheshna-donthineni@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:40:36 +0530 Subject: [PATCH 3/3] Update session_group.py --- app/router/session_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/router/session_group.py b/app/router/session_group.py index 4a9e13c..4106fad 100644 --- a/app/router/session_group.py +++ b/app/router/session_group.py @@ -41,7 +41,7 @@ def get_group_for_session(session_id: str): print(data) group_type_response = requests.get( group_type_db_url, - params={"type": "group", "child_id": data[0]["group_type_id"]}, + params={"id": data[0]["group_type_id"]}, headers=db_request_token(), ) if group_type_response.status_code == 200: