diff --git a/home/views.py b/home/views.py index f1e20ef..3fb5c7c 100644 --- a/home/views.py +++ b/home/views.py @@ -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 @@ -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') diff --git a/project/views.py b/project/views.py index 3f3e91e..b1ef447 100644 --- a/project/views.py +++ b/project/views.py @@ -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) @@ -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)