from django.shortcuts import render
from datetime import *
from sensor_app.bo.authService import AuthService
from sensor_app.controllers.PrivateSensorViewControllers import *

from sensor_app.bo.sensorsService import *
# Create your views here.

def main_view(request):
    array = [ [i*j for i in range(1,11)] for j in range(1,11)]
    if AuthService.is_login(request):
        return PrivateSensorViewControllers.sensor_view_renderer(request)
    else:
        return render(request,"index.html")