Fix historico so it uses an object as parameter
This commit is contained in:
@ -26,12 +26,13 @@ def handle(req):
|
||||
Args:
|
||||
req (str): request body
|
||||
|
||||
[nombre1, nombre2, ... nombreN]
|
||||
{"i": ["nombre1, nombre2"]}
|
||||
|
||||
"""
|
||||
nombres = []
|
||||
try:
|
||||
nombres = loads(req)
|
||||
nombres = nombres["i"].split(",")
|
||||
nombres = [remove_accents(x.strip().lower()) for x in nombres]
|
||||
nombres = [n for n in nombres if n]
|
||||
except Exception:
|
||||
|
Reference in New Issue
Block a user