
from django.shortcuts import render
from django.contrib import messages
from django.shortcuts import redirect
import requests
from django.http import HttpResponse

# Create your views here.
def MoperatorBundle_page(request):
   response = requests.get('https://thingsaccess.com/rfid/index.php/Api/getMachineOperatorBundle')
   data_send = response.json()
   data_steps = data_send['response']
   if data_steps == 11:
         data_steps = [] 
   return render(request, 'machineOperatorBundle/machineOperatorBundle.html',context={'data_steps': data_steps})