docstring for parse_api_response

This commit is contained in:
gammafn 2021-04-06 12:39:07 -05:00
parent 0e69efcc11
commit f0aa5530db
1 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,13 @@ class MatrixModule(BotModule):
self.app_id = data["app_id"]
def parse_api_response(self, res):
"""Parses the pods from wa and prepares texts to send to matrix
:param res: the result from wolframalpha.Client
:type res: dict
:return: a tuple of tuples: ((primary_html, primary_plaintext), (full_html, full_plaintext))
:rtype: tuple
"""
htmls = []
texts = []
primary = None