Skip to content

Commit

Permalink
change redirect message
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Nov 23, 2023
1 parent b75608d commit 52fed89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embark/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def main_dashboard(request):
if request.user.is_authenticated:
if FirmwareAnalysis.objects.filter(finished=True, failed=False).count() > 0 and Result.objects.all().count() > 0:
return render(request, 'dashboard/mainDashboard.html', {'nav_switch': True, 'username': request.user.username})
messages.info(request,"There are no Results to display yet, redirecting to uploader")
messages.info(request,"Redirected - There are no Results to display yet")
return redirect('embark-uploader-home')
return HttpResponseForbidden

Expand Down

0 comments on commit 52fed89

Please sign in to comment.