change key in return json

This commit is contained in:
Maciej Ścigacz 2023-05-30 00:09:07 +02:00
parent 081b161ca2
commit 778366b30c

View File

@ -25,4 +25,4 @@ def get_data():
def scrapp(): def scrapp():
url = request.get_json() url = request.get_json()
comments = scrapp_comments(url['link']) comments = scrapp_comments(url['link'])
return jsonify({'comments':comments}) return jsonify({'sentences':comments})