Fix IndentationError in app.py
This commit is contained in:
@@ -311,7 +311,8 @@ def update_reported_mistake_status(
|
||||
request: MistakeUpdateStatusRequest,
|
||||
db: Session = Depends(get_db),
|
||||
username: str = Depends(authenticate_user)
|
||||
): mistake = db.query(ReportedMistake).filter(ReportedMistake.id == mistake_id).first()
|
||||
):
|
||||
mistake = db.query(ReportedMistake).filter(ReportedMistake.id == mistake_id).first()
|
||||
if not mistake:
|
||||
raise HTTPException(404, detail="Reported mistake not found")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user