Nyashi commited on
Commit
117a0df
·
verified ·
1 Parent(s): 57ce54c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,6 +10,6 @@ def old():
10
  @app.get("/anime/{query}")
11
  def greet_json(query,response:Response):
12
  data=search(query);
13
- k=[query,map(lambda x:x["title"],data)]
14
  return json.dumps(k)
15
 
 
10
  @app.get("/anime/{query}")
11
  def greet_json(query,response:Response):
12
  data=search(query);
13
+ k=[query,list(map(lambda x:x["title"],data))]
14
  return json.dumps(k)
15