diff --git a/edmond/plugins/shrlok.py b/edmond/plugins/shrlok.py index c4a6c31..7c5f3a4 100644 --- a/edmond/plugins/shrlok.py +++ b/edmond/plugins/shrlok.py @@ -44,7 +44,7 @@ class ShrlokPlugin(Plugin): return url def post_text(self, text): - self.post("txt", text.encode()) + return self.post("txt", text.encode()) def post_html(self, html): - self.post("html", html.encode()) + return self.post("html", html.encode()) diff --git a/edmond/plugins/taxref.py b/edmond/plugins/taxref.py index 6a7de42..053a8c6 100644 --- a/edmond/plugins/taxref.py +++ b/edmond/plugins/taxref.py @@ -1,5 +1,6 @@ import random import urllib.parse +from typing import Optional import requests @@ -9,7 +10,10 @@ BASE_URL = "https://taxref.mnhn.fr/api" IMG_FETCH_HTML = """\ - + + + +