Skip to content

Commit

Permalink
clean up prints
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad88me committed Nov 7, 2023
1 parent 6d0a8ec commit 7293e58
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions OnToology/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,19 +229,15 @@ def opub_view(request):
def runs_view(request):
user = request.user
try:
print("in runs view")
if 'repo' in request.GET:
print("in request GET")
repo_name = request.GET['repo'].strip()
repos = Repo.objects.filter(url=repo_name)
if len(repos) == 1:
print("single repo")
repo = repos[0]
if repo not in user.repos.all():
return render(request, 'msg.html', {
'msg': 'This repo does not belong to the loggedin user. Try to add it and try again.'})
latest_oruns = ORun.objects.filter(repo=repo).order_by('-timestamp')
print("going to render")
return render(request, 'runs.html', {'oruns': latest_oruns})
else:
print("runs_view> repo <" + str(repo_name) + "> does not exist for user: " + str(user))
Expand Down

0 comments on commit 7293e58

Please sign in to comment.