CapPaste: check the contents in can_post
For pastealacon, it is used to check for encoding compatibility.
This commit is contained in:
parent
56fe4448d3
commit
0d2148bd84
6 changed files with 32 additions and 22 deletions
|
|
@ -91,7 +91,7 @@ class Pastoob(ReplApplication):
|
|||
params = self._get_params()
|
||||
backends = {}
|
||||
for backend in self.weboob.iter_backends():
|
||||
score = backend.can_post(**params)
|
||||
score = backend.can_post(contents, **params)
|
||||
if score:
|
||||
backends.setdefault(score, []).append(backend)
|
||||
# select a random backend from the best scores
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue