Git diffs of .py files
Invariants a linter can't express: tenant scoping, missing auth guards, blocking calls in async paths
- Python
- Django
Show the diffHide the diff
@@ routers/invoices.py @@ @router.get("/invoices")-def list_invoices(user: User = Depends(current_user)):- return repo.find(org_id=user.org_id)+def list_invoices(org_id: str, user: User = Depends(current_user)):+ return repo.find(org_id=org_id)