This commit is contained in:
deathbybandaid 2019-09-23 11:27:05 -04:00
parent 3af17d26d3
commit 9b8fd052aa

View File

@ -120,7 +120,8 @@ class Search():
try:
_definition = query['list'][0]['definition'].strip().replace(' ', ' ')
definition = re.sub(r"\[*\]*", "", _definition)
return str(searchdict["query"]) + " " + str(definition)
definition = re.findall('(\d\.[^\d]*)', definition)
return str(definition)
except Exception as e:
definition = e
return None