MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / process_approval

Method process_approval

backend/app/models/workflow.py:144–152  ·  view source on GitHub ↗

Process an approval request.

(self, approval_id: str, status: str, user: str = "user")

Source from the content-addressed store, hash-verified

142 return approval
143
144 def process_approval(self, approval_id: str, status: str, user: str = "user"):
145 """Process an approval request."""
146 for approval in self.pending_approvals:
147 if approval.id == approval_id:
148 approval.status = status
149 self.pending_approvals.remove(approval)
150 self.approval_history.append(approval)
151 self.last_modified_by = user
152 break
153
154 def get_phase_progress(self) -> float:
155 """Get progress percentage based on current phase."""

Callers 2

approve_actionMethod · 0.80
request_approvalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected