From b70486b1f3d00b10117b21230e2299e0c8a77d0c Mon Sep 17 00:00:00 2001 From: Sudhanshu Srivastava <71897832+Codered9@users.noreply.github.com> Date: Thu, 28 Apr 2022 09:35:52 +0530 Subject: [PATCH] wip Comment --- server/githubsrm/apis/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/githubsrm/apis/utils.py b/server/githubsrm/apis/utils.py index e6ebcad..db7df5e 100644 --- a/server/githubsrm/apis/utils.py +++ b/server/githubsrm/apis/utils.py @@ -45,6 +45,7 @@ def verify_github_details(verify_user=False, **kwargs): if verify_user: response = session.get(f"{github_api}/users/{kwargs['user_id']}") res = response.json() + # Will send False to the frontend if server is down or User ID is not a personal id but a Organisation ID. if(response.status_code == 200): if(res['type']=="User" ): return True