1.6.11 fix next package for my_routes

This commit is contained in:
SDE
2024-08-13 12:58:41 +03:00
parent 40a2412b9b
commit a99ffcc9d2
3 changed files with 34 additions and 17 deletions

View File

@@ -293,8 +293,12 @@ def get_my_routes_ajax(request):
lang = get_and_set_lang(request)
data = request.POST.dict()
if not data and request.body:
data = json.loads(request.body)
try:
routes_Dict = get_routes_Dict(request.user)
routes_Dict = get_routes_Dict(request.user, data)
if 'errors' in routes_Dict:
return JsonResponse(routes_Dict, status=400)