From 56b54441ad2e7437df783adf9ac8133c39d52de7 Mon Sep 17 00:00:00 2001 From: Andrew Grant Date: Thu, 30 Apr 2020 23:45:25 -0400 Subject: [PATCH] Remove useless duplicate comments on GET/POST headers --- OpenBench/views.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/OpenBench/views.py b/OpenBench/views.py index cef2f28..f1cd167 100644 --- a/OpenBench/views.py +++ b/OpenBench/views.py @@ -122,8 +122,6 @@ def logout(request): # # # GET : Logout the User if they are logged in. Return to the main page # # # - # POST : Logout the User if they are logged in. Return to the main page # - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # django.contrib.auth.logout(request) @@ -180,10 +178,6 @@ def index(request, page=1, error=''): # display of tests by the requested page number. Also display the # # status for connected machines. # # # - # POST : Return all pending, active, and completed tests. Limit the # - # display of tests by the requested page number. Also display the # - # status for connected machines. # - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # pending = OpenBench.utils.getPendingTests() @@ -207,9 +201,6 @@ def greens(request, page=1): # GET : Return all tests both passed and completed. Limit the display # # of tests by the requested page number. # # # - # POST : Return all tests both passed and completed. Limit the display # - # of tests by the requested page number. # - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # completed = OpenBench.utils.getCompletedTests().filter(passed=True) @@ -267,10 +258,6 @@ def user(request, username, page=1): # that has been requested. Limit the display of completed tests # # by the requested page number. Also display the User's machines # # # - # POST : Return all pending, active, and completed tests for the User # - # that has been requested. Limit the display of completed tests # - # by the requested page number. Also display the User's machines # - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # pending = OpenBench.utils.getPendingTests().filter(author=username) @@ -301,10 +288,6 @@ def users(request): # Users by games completed, tests created. The HTML template will # # filter out disabled users later. # # # - # POST : Return information about all users on the Framework. Sort the # - # Users by games completed, tests created. The HTML template will # - # filter out disabled users later. # - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # data = {'profiles' : Profile.objects.order_by('-games', '-tests')} @@ -317,9 +300,6 @@ def events(request, page=1): # GET : Return information about the events taken on the Framework. # # Only show those events for the requested page. # # # - # POST : Return information about the events taken on the Framework. # - # Only show those events for the requested page. # - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # events = LogEvent.objects.all().order_by('-id') @@ -335,9 +315,6 @@ def machines(request): # GET : Return information about all of the machines that have been # # active on the Framework within the last fifteen minutes # # # - # POST : Return information about all of the machines that have been # - # active on the Framework within the last fifteen minutes # - # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # data = {'machines' : OpenBench.utils.getRecentMachines()}