mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test
This commit is contained in:
parent
3af17d26d3
commit
9b8fd052aa
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user