Fix booking

This commit is contained in:
Kuroshini 2019-11-28 14:24:39 +03:00
parent 19190eb1e0
commit 4bc3af29a0

View File

@ -84,8 +84,8 @@ class CheckWhetherBookingAvailable(generics.GenericAPIView):
service_response = self._preprocess_guestonline_response(service.response) \ service_response = self._preprocess_guestonline_response(service.response) \
if establishment.guestonline_id is not None \ if establishment.guestonline_id is not None \
else service.response else service.response if service else None
response.update({'details': service_response} if service and service.response else {}) response.update({'details': service_response})
return Response(data=response, status=200) return Response(data=response, status=200)