Skip to content

Commit b550b06

Browse files
attempt to fix error
1 parent 67c8bfa commit b550b06

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/django_ci_cd.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ jobs:
2828
sudo service redis-server start
2929
sudo service redis-server status
3030
31-
- name: Install Dependencies
32-
run: |
33-
python -m pip install --upgrade pip
34-
pip install -r requirements.txt
35-
3631
- name: Install Flake8 and Run Linter
3732
run: |
3833
pip install flake8
3934
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
4035
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
4136
37+
- name: Install Dependencies
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install -r requirements.txt
41+
4242
- name: Install Coverage
4343
run: |
4444
pip install coverage

backend/apps/uploads/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def patch(self, request, public_id):
8080
# Return updated specific upload details to front-end
8181
return Response({'status': 'success', 'data': serializer.data}, status=status.HTTP_200_OK)
8282
else:
83-
return Response(status=HTTP_400_BAD_REQUEST)
83+
return Response(status=status.HTTP_400_BAD_REQUEST)
8484
# Note: Tested this PATCH request by entering this into the command line
8585
# curl -X PATCH http://127.0.0.1:8000/uploads/{public_id}/ -H "Content-Type: application/json" -d '{"description": "Updated upload description"}'
8686

0 commit comments

Comments
 (0)