Skip to content

Commit

Permalink
flake test update
Browse files Browse the repository at this point in the history
  • Loading branch information
hexwhiz committed Oct 28, 2024
1 parent e2b8453 commit cbbdce9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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(
Expand All @@ -98,7 +98,7 @@ def populate_projects(request):
api_url=project["api_url"],
html_url=project["html_url"]
)

return HttpResponseRedirect(reverse('home'))


Expand Down

0 comments on commit cbbdce9

Please sign in to comment.