Spaces:
Sleeping
Sleeping
Caner Giden commited on
Update workflows.py
Browse files71 unmodified lines727374757677787912 unmodified lines929394959697989919 unmodified lines11912012112212312412512671 unmodified linesTek bir workflow getir.Sadece sahibiyse görebilir."""wf = db.query(models.Workflow).filter_by(id=workflow_id).first()if not wf or wf.owner_id != current_user.id:raise HTTPException(status_code=status.HTTP_404_NOT_FOUND,detail="Workflow not found",12 unmodified linesWorkflow güncelle.Kullanıcı sadece kendi workflow'unu güncelleyebilir."""wf = db.query(models.Workflow).filter_by(id=workflow_id).first()if not wf or wf.owner_id != current_user.id:raise HTTPException(status_code=status.HTTP_404_NOT_FOUND,detail="Workflow not found",19 unmodified linesWorkflow sil.Kullanıcı sadece kendi workflow'unu silebilir."""wf = db.query(models.Workflow).filter_by(id=workflow_id).first()if not wf or wf.owner_id != current_user.id:raise HTTPException(status_code=status.HTTP_404_NOT_FOUND,detail="Workflow not found",71 unmodified lines72737475767778798081828312 unmodified lines9697989910010110210310410510610719 unmodified lines12712812913013113213313413513613713871 unmodified linesTek bir workflow getir.Sadece sahibiyse görebilir."""wf = (db.query(models.Workflow).filter_by(id=workflow_id, owner_id=current_user.id).first())if not wf:raise HTTPException(status_code=status.HTTP_404_NOT_FOUND,detail="Workflow not found",12 unmodified linesWorkflow güncelle.Kullanıcı sadece kendi workflow'unu güncelleyebilir."""wf = (db.query(models.Workflow).filter_by(id=workflow_id, owner_id=current_user.id).first())if not wf:raise HTTPException(status_code=status.HTTP_404_NOT_FOUND,detail="Workflow not found",19 unmodified linesWorkflow sil.Kullanıcı sadece kendi workflow'unu silebilir."""wf = (db.query(models.Workflow).filter_by(id=workflow_id, owner_id=current_user.id).first())if not wf:raise HTTPException(status_code=status.HTTP_404_NOT_FOUND,detail="Workflow not found",
app/routers/workflows.py+18-6