Skip to content

Commit 68bbd12

Browse files
Merge pull request #92 from SRM-IST-KTR/dev
🔥 Removed get all route
2 parents a6292f6 + 0fa16f4 commit 68bbd12

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

server/githubsrm/apis/open_views.py

+4-18
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,6 @@ def post(self, request, **kwargs) -> response.Response:
7575
"error": "Invalid reCaptcha"
7676
}, status=status.HTTP_401_UNAUTHORIZED)
7777

78-
def get(self, request, **kwargs) -> response.Response:
79-
"""Return all Contributors
80-
81-
Args:
82-
request
83-
84-
Returns:
85-
response.Response
86-
"""
87-
88-
result = json.loads(json_util.dumps(open_entry.get_contributors()))
89-
return response.Response({
90-
"contributors": result
91-
}, status=status.HTTP_200_OK)
92-
9378

9479
class Maintainer(APIView):
9580
'''
@@ -128,7 +113,7 @@ def post(self, request, **kwargs) -> response.Response:
128113
if details := open_entry_checks.validate_beta_maintainer(doc=validate):
129114

130115
if id := open_entry.enter_beta_maintainer(doc=request.data):
131-
116+
132117
if service.wrapper_email(role='maintainer_received', data={
133118
"name": validate["name"],
134119
"project_name": details["project_name"],
@@ -143,7 +128,8 @@ def post(self, request, **kwargs) -> response.Response:
143128
}}).start()
144129
return response.Response(status=status.HTTP_201_CREATED)
145130
else:
146-
open_entry.beta_maintainer_reset_status(maintainer_id=id)
131+
open_entry.beta_maintainer_reset_status(
132+
maintainer_id=id)
147133

148134
return response.Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
149135

@@ -163,7 +149,7 @@ def post(self, request, **kwargs) -> response.Response:
163149
validate['project_id'] = value[0]
164150
validate['project_name'] = value[2]
165151
validate['description'] = value[3]
166-
152+
167153
if service.wrapper_email(role='project_submission_confirmation', data={
168154
"project_name": validate["project_name"],
169155
"name": validate["name"],

0 commit comments

Comments
 (0)