
    -Qh                     d    S SK Jr  S SKJr  S SKJr  S SKrS SKrSSKJ	r	  \S 5       r
\S 5       rg)	    )login_requiredrender)JsonResponseN   )calcular_estadisticas_unidadesc                     [        U S5      $ )Nztesting.htmlr   )requests    EC:\Repositorios\Repos en GIT\Fox\app\controllers\testingController.py
gettestingr   	   s    '>**    c                     [        U R                  R                  S5      5      n[        U R                  R                  S5      5      n[        U R                  R                  S5      5      n[        U R                  R                  S5      5      n[        UUUUS	9n[        S
U5        [        USS9$ ! [        [        4 a    [        SS0SS9s $ f = f)Ncam_from_daycam_from_year
cam_to_daycam_to_yearerroru   Parámetros inválidosi  )status)ano_from	camp_fromano_tocamp_todataF)safe)intGETget	TypeError
ValueErrorr   r   print)r
   cam_from	year_fromcam_toyear_tor   s         r   gettestingdatar%      s    Mw{{~6789	W[[__\23gkkoom45
 *	D 
&5)) z" MW&>?LLMs   BB4 4CC)django.contrib.auth.decoratorsr   django.shortcutsr   django.httpr   jsontimeservices.testingServicer   r   r%    r   r   <module>r-      s?    9 # $   F + + * *r   