Better ref logic and better redundancy on the scheduling
This commit is contained in:
@@ -35,7 +35,7 @@ async def report_score(
|
||||
|
||||
_check_auth(t, user, report.code)
|
||||
|
||||
match = crud.get_match(db, id, match_id)
|
||||
match = crud.get_match(db, match_id)
|
||||
if not match:
|
||||
raise HTTPException(404, "Match not found")
|
||||
|
||||
@@ -71,7 +71,7 @@ async def edit_score(
|
||||
|
||||
_check_auth(t, user, report.code)
|
||||
|
||||
match = crud.get_match(db, id, match_id)
|
||||
match = crud.get_match(db, match_id)
|
||||
if not match:
|
||||
raise HTTPException(404, "Match not found")
|
||||
|
||||
@@ -105,7 +105,7 @@ async def clear_score(
|
||||
|
||||
_check_auth(t, user, code)
|
||||
|
||||
match = crud.get_match(db, id, match_id)
|
||||
match = crud.get_match(db, match_id)
|
||||
if not match:
|
||||
raise HTTPException(404, "Match not found")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user