From cbbdce9db51db206b642cf1dace0a09263f1bb56 Mon Sep 17 00:00:00 2001 From: hexwhiz Date: Mon, 28 Oct 2024 11:50:45 +0530 Subject: [PATCH] flake test update --- project/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/views.py b/project/views.py index fff2bdd..fa2f42c 100644 --- a/project/views.py +++ b/project/views.py @@ -50,7 +50,7 @@ def fetch_github_repo_details(project_name, headers): except KeyError: project_data["mentor"] = CONTRIHUB_MENTOR project_data["mentor_url"] = CONTRIHUB_MENTOR_URL - + return project_data @@ -76,7 +76,7 @@ def populate_projects(request): for project_name in AVAILABLE_PROJECTS: project_qs = Project.objects.filter(name=project_name) - + if not project_qs: # if project in present then add it in database project = fetch_github_repo_details(project_name=project_name, headers=headers) Project.objects.create( @@ -98,7 +98,7 @@ def populate_projects(request): api_url=project["api_url"], html_url=project["html_url"] ) - + return HttpResponseRedirect(reverse('home'))