Skip to content

Commit

Permalink
fix: Fix error in enter-code
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed May 26, 2024
1 parent 4bcef1e commit e6eede8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kuro/utility/geetest/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def gt(_: web.Request) -> web.StreamResponse:
@routes.post("/send-data")
async def send_data_endpoint(request: web.Request) -> web.Response:
result = await request.json()
result = result.get("code", MMTResult(**result))
result = result["code"] if "code" in result else MMTResult(**result)
future.set_result(result)
return web.Response(status=204)

Expand Down

0 comments on commit e6eede8

Please sign in to comment.