Skip to content

Commit

Permalink
feat: 체감 난이도 투표 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wonyangs committed Oct 15, 2024
1 parent 77ca204 commit 2d13c24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
async def upload_video(
file: UploadFile = File(...),
problemId: str = Form(...),
perceivedDifficulty: str = Form(...),
review: Optional[str] = Form(''),
token: str = Depends(validate_token)
):
Expand All @@ -30,6 +31,7 @@ async def upload_video(
request_data = {
"video_name": s3_filename,
"problem_id": problemId,
"perceivedDifficulty": perceivedDifficulty,
"review": review,
"token": token
}
Expand Down Expand Up @@ -64,6 +66,7 @@ async def upload_video(
request_data = {
"video_name": s3_filename,
"problem_id": problemId,
"perceivedDifficulty": '보통',
"review": review,
"token": token,
"nickname": nickName,
Expand Down

0 comments on commit 2d13c24

Please sign in to comment.