mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
bug fix url import
This commit is contained in:
@@ -593,7 +593,7 @@ def recipe_from_source(request):
|
||||
},
|
||||
status=400)
|
||||
else:
|
||||
return JsonResponse(get_from_scraper(scrape, request.space))
|
||||
return JsonResponse({"recipe_json": get_from_scraper(scrape, request.space)})
|
||||
else:
|
||||
headers = {
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36' # noqa: E501
|
||||
|
||||
Reference in New Issue
Block a user