Skip to content

Commit

Permalink
Fixed populate projects and issues APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyavKaneria committed Oct 4, 2023
1 parent 6e56569 commit beaebea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def likes(request, issue_pk):

Issue.objects.filter(pk=issue_pk).update(likes=current_likes)
Issue.objects.filter(pk=issue_pk).update(dislikes=current_dislikes)
return redirect('/')
return redirect('../dashboard')


@login_required
Expand Down Expand Up @@ -402,4 +402,4 @@ def dislikes(request, issue_pk):

Issue.objects.filter(pk=issue_pk).update(likes=current_likes)
Issue.objects.filter(pk=issue_pk).update(dislikes=current_dislikes)
return redirect('/')
return redirect('../dashboard')
4 changes: 2 additions & 2 deletions project/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def populate_issues(request):
print("This issue is a actually a PR")
continue
title, number, state = issue['title'], issue['number'], issue['state']
mentor_name, level, points, bonus_pt, is_restricted = parse_labels(labels=issue['labels'])
mentor_name, level, points, is_restricted = parse_labels(labels=issue['labels'])
# print("Fsf ",mentor_name)
api_url, html_url = issue['url'], issue['html_url']
issue_qs = Issue.objects.filter(number=number, project=project)
Expand All @@ -106,7 +106,7 @@ def populate_issues(request):
level=level,
points=points,
is_restricted=is_restricted,
bonus_pt=bonus_pt
bonus_pt=0
)

print(db_issue)
Expand Down

0 comments on commit beaebea

Please sign in to comment.