Skip to content

Commit a4ef44a

Browse files
committed
return no content
1 parent 9ff0301 commit a4ef44a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

surftimer/ck_bonus.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,11 @@ def selectBonusCount(request: Request, response: Response, mapname: str):
135135
xquery = selectQuery(surftimer.queries.sql_selectBonusCount.format(mapname))
136136

137137
if len(xquery) <= 0:
138-
return JSONResponse(
139-
status_code=status.HTTP_404_NOT_FOUND,
140-
content={"xtime": time.perf_counter() - tic},
141-
)
138+
return Response(status_code=status.HTTP_204_NO_CONTENT)
139+
# return JSONResponse(
140+
# status_code=status.HTTP_404_NOT_FOUND,
141+
# content={"xtime": time.perf_counter() - tic},
142+
# )
142143

143144
toc = time.perf_counter()
144145
print(f"Execution time {toc - tic:0.4f}")

0 commit comments

Comments
 (0)