Skip to content

Commit 28c9cf4

Browse files
committed
fix: format encryption provider search for ruff + semgrep compatibility
1 parent 87ff4c3 commit 28c9cf4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

spp_attachment_av_scan/models/ir_attachment.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,10 @@ def _get_quarantine_encryption_provider(self):
247247
if provider.exists():
248248
return provider
249249

250-
provider = self.env["spp.encryption.provider"].sudo().search( # nosemgrep
251-
[("type", "=", "jwcrypto")], order="id asc", limit=1
250+
provider = (
251+
self.env["spp.encryption.provider"] # nosemgrep
252+
.sudo()
253+
.search([("type", "=", "jwcrypto")], order="id asc", limit=1)
252254
)
253255

254256
if not provider:

0 commit comments

Comments
 (0)