From 48ed397bc8a7cd110892eabdb6ffccb7f6cd38c2 Mon Sep 17 00:00:00 2001 From: tfa Date: Mon, 26 Sep 2022 17:16:42 +0200 Subject: [PATCH] =?UTF-8?q?commande=20partition=20r=C3=A9duite=20=C3=A0=20?= =?UTF-8?q?part?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chef_mou.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chef_mou.py b/chef_mou.py index 22ba2cc..3756164 100644 --- a/chef_mou.py +++ b/chef_mou.py @@ -63,7 +63,7 @@ class ChefMou(Plugin): s = soup.findAll('th', background='/fond3.gif') ps = random.choice(s) await evt.respond(ps.text) - elif pattern.__contains__("partition"): + elif pattern.__contains__("part"): chunks = pattern.split(None, 2) if len(chunks) != 3 : await evt.respond( @@ -95,7 +95,7 @@ class ChefMou(Plugin): # Si trouvé le chercher sinon erreur if len(idxTitre) > 0 : for el in idxTitre : - self.log.info(parsedList[el] + ': ' + str(SequenceMatcher(None, chunks[2], parsedList[el]).ratio())) + self.log.info(originalList[el] + ': ' + str(SequenceMatcher(None, chunks[2], parsedList[el]).ratio())) #Et on recherche dans la liste originale avec le titre original s = soup.find('th', string=originalList[idxTitre[0]]) t = s.parent.findAll('a')