Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 883b58f

Browse files
committed
Use consistent variable naming in api requests
1 parent ace92d6 commit 883b58f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

upload/views/upload_coverage.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ def post(self, request: HttpRequest, *args, **kwargs) -> Response:
6969

7070
# Create commit
7171
create_commit_data = dict(
72-
commitid=request.data.get("commit_sha"),
73-
parent_commit_id=request.data.get("parent_sha"),
74-
pullid=request.data.get("pull_request_number"),
7572
branch=request.data.get("branch"),
73+
commitid=request.data.get("commitid"),
74+
parent_commit_id=request.data.get("parent_commit_id"),
75+
pullid=request.data.get("pullid"),
7676
)
7777
commit_serializer = CommitSerializer(data=create_commit_data)
7878
if not commit_serializer.is_valid():
@@ -107,10 +107,10 @@ def post(self, request: HttpRequest, *args, **kwargs) -> Response:
107107

108108
# Do upload
109109
upload_data = dict(
110-
ci_url=request.data.get("build_url"),
111-
env=request.data.get("env_vars"),
112-
flags=request.data.get("flags"),
113110
ci_service=request.data.get("ci_service"),
111+
ci_url=request.data.get("ci_url"),
112+
env=request.data.get("env"),
113+
flags=request.data.get("flags"),
114114
job_code=request.data.get("job_code"),
115115
name=request.data.get("name"),
116116
version=request.data.get("version"),

0 commit comments

Comments
 (0)