LeireTedCas commited on
Commit
02c464d
1 Parent(s): 484bf5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +76 -57
app.py CHANGED
@@ -559,7 +559,8 @@ async def seleccion_trauma ():#line:626
559
  OO00O0OO0O000OO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:628
560
  OOO000O0OOO00O0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:629
561
  O00O00O0OO0OO000O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:630
562
- return render_template ('seleccion_trauma.html',user_image4 =O0000O0OOO00OO00O ,user_image5 =OO00O0OO0O000OO00 ,user_image6 =OOO000O0OOO00O0OO ,user_image7 =O00O00O0OO0OO000O )#line:631
 
563
  @app .route ("/buscador_trauma",methods =['GET','POST'])#line:633
564
  async def buscador_trauma ():#line:634
565
  O00O000OO0O000OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:635
@@ -572,21 +573,22 @@ async def buscador_trauma ():#line:634
572
  O0O00OOOO00O0000O =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:642
573
  O0OOO0O0O00OOO0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'preguntas_respuestas.png')#line:643
574
  OO0OO0OOO0O0OO0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:644
 
575
  OOOO0OOO0OO0OOO0O =str (request .form .to_dict ())#line:645
576
  OOOO0OOO0OO0OOO0O =adaptar_salida (OOOO0OOO0OO0OOO0O )#line:646
577
  OO0O000O00O00O0OO ={}#line:647
578
  OO0O000O00O00O0OO [""]=""#line:648
579
  if len (OOOO0OOO0OO0OOO0O )==0 :#line:649
580
- return render_template ('buscador_trauma.html',preguntas_respuestas =O0OOO0O0O00OOO0O0 ,result_busqueda =OO0O000O00O00O0OO ,user_image4 =O00O000OO0O000OO0 ,user_image5 =OOO000OO0OO0OO000 ,user_image6 =OOO0000OOO000OOO0 ,user_image7 =O0OOOOOO0OO0OO00O ,user_image8 =OOOO00O0O0OOO0OO0 ,user_image9 =O0O00OOOO00O0000O ,user_image10 =OO000OO0OOO00OO00 ,user_image11 =OO0OO0OOO0O0OO0OO ,user_image12 =OO00OO0OO0O0O0OO0 ,nid2 =0 )#line:650
581
  elif OOOO0OOO0OO0OOO0O !=None or "{}":#line:651
582
  O0O0O00OO0OOOOO00 =1 #line:652
583
  OOO000OOO00OO000O =await cargar_base_datos (OOOO0OOO0OO0OOO0O ,O0O0O00OO0OOOOO00 )#line:653
584
  O0OOO0OO00OO0OOO0 ,O00O00O0OOOOO00O0 ,O0O00O00OO00OO0O0 =await buscar_faq (OOOO0OOO0OO0OOO0O ,1 )#line:654
585
  if OOO000OOO00OO000O ==None :#line:655
586
  if len (O0OOO0OO00OO0OOO0 )==0 :#line:656
587
- return render_template ('buscador_trauma.html',preguntas_respuestas =O0OOO0O0O00OOO0O0 ,result_busqueda =OO0O000O00O00O0OO ,prediction_text ="No hay resultados para tu busqueda",user_image4 =O00O000OO0O000OO0 ,user_image5 =OOO000OO0OO0OO000 ,user_image6 =OOO0000OOO000OOO0 ,user_image7 =O0OOOOOO0OO0OO00O ,user_image8 =OOOO00O0O0OOO0OO0 ,user_image9 =O0O00OOOO00O0000O ,user_image10 =OO000OO0OOO00OO00 ,user_image11 =OO0OO0OOO0O0OO0OO ,user_image12 =OO00OO0OO0O0O0OO0 ,nid2 =0 )#line:657
588
  else :#line:658
589
- return render_template ('buscador_trauma.html',preguntas_respuestas =O0OOO0O0O00OOO0O0 ,faqs =O0OOO0OO00OO0OOO0 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OO0O000O00O00O0OO ,user_image4 =O00O000OO0O000OO0 ,user_image5 =OOO000OO0OO0OO000 ,user_image6 =OOO0000OOO000OOO0 ,user_image7 =O0OOOOOO0OO0OO00O ,user_image8 =OOOO00O0O0OOO0OO0 ,user_image9 =O0O00OOOO00O0000O ,user_image10 =OO000OO0OOO00OO00 ,user_image11 =OO0OO0OOO0O0OO0OO ,user_image12 =OO00OO0OO0O0O0OO0 ,nid2 =0 )#line:659
590
  elif len (OOO000OOO00OO000O )>=1 :#line:660
591
  OO00OOO0OOO0O0000 =[]#line:661
592
  O00OO0OOOOOO0OOO0 =[]#line:662
@@ -597,12 +599,12 @@ async def buscador_trauma ():#line:634
597
  for O0O0OOO0OOO0O00OO ,OO0O0OO000OOOOOO0 in enumerate (OO00OOO0OOO0O0000 ):#line:667
598
  OO0O000O00O00O0OO [O00OO0OOOOOO0OOO0 [O0O0OOO0OOO0O00OO ]]=OO0O0OO000OOOOOO0 #line:668
599
  if len (O0OOO0OO00OO0OOO0 )!=0 :#line:670
600
- return render_template ('buscador_trauma1.html',faqs =O0OOO0OO00OO0OOO0 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OO0O000O00O00O0OO ,user_image4 =O00O000OO0O000OO0 ,user_image5 =OOO000OO0OO0OO000 ,user_image6 =OOO0000OOO000OOO0 ,user_image7 =O0OOOOOO0OO0OO00O ,user_image8 =OOOO00O0O0OOO0OO0 ,user_image9 =O0O00OOOO00O0000O ,user_image10 =OO000OO0OOO00OO00 ,user_image11 =OO0OO0OOO0O0OO0OO ,user_image12 =OO00OO0OO0O0O0OO0 ,nid2 =0 )#line:671
601
  else :#line:672
602
  if len(OO0O000O00O00O0OO)==1:
603
  return redirect(url_for('resultado_trauma',link=O00OO0OOOOOO0OOO0))
604
  else:
605
- return render_template ('buscador_trauma1.html',result_busqueda =OO0O000O00O00O0OO ,user_image4 =O00O000OO0O000OO0 ,user_image5 =OOO000OO0OO0OO000 ,user_image6 =OOO0000OOO000OOO0 ,user_image7 =O0OOOOOO0OO0OO00O ,user_image8 =OOOO00O0O0OOO0OO0 ,user_image9 =O0O00OOOO00O0000O ,user_image10 =OO000OO0OOO00OO00 ,user_image11 =OO0OO0OOO0O0OO0OO ,user_image12 =OO00OO0OO0O0O0OO0 ,nid2 =0 )#line:673
606
  @app .route ("/resultado_trauma",methods =['GET','POST'])#line:675
607
  async def resultado_trauma ():#line:676
608
  OO00OOO00OO00O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:677
@@ -612,29 +614,31 @@ async def resultado_trauma ():#line:676
612
  O000OOO0O00OO0O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:681
613
  OO0O00OOO000O0000 =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:682
614
  OOOO00000O00O000O =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:683
 
615
  OOOO00O0OO00OOOOO =request .args .get ('link')#line:684
616
  OOOOOOOO0O00000OO ,O0OO0O0000000O00O =await cargar_tipo (OOOO00O0OO00OOOOO ,1 )#line:685
617
  OOO0OOOO00OO00O0O =OOOOOOOO0O00000OO ['title']#line:686
618
  if O0OO0O0000000O00O =="Intervencion":#line:688
619
  O0O0OO0OO000OOO00 ,O00O0O0OOOO00OOO0 =await cargar_caja (str (OOOO00O0OO00OOOOO ),'Instrumental - Cajas: ')#line:689
620
- return render_template ('intervencion_trauma.html',user_image8 =O000OOO0O00OO0O00 ,user_image9 =OO0O00OOO000O0000 ,user_image10 =OO000000O00OO0000 ,user_image11 =OOOO00000O00O000O ,user_image12 =OO0OOO0000OOO0000 ,instrumental =O0O0OO0OO000OOO00 ,texto_cajas =O00O0O0OOOO00OOO0 ,title =OOO0OOOO00OO00O0O ,user_image6 =OO00OOO00OO00O000 ,user_image7 =OOO00O000OOOO0000 ,nid2 =OOOO00O0OO00OOOOO )#line:690
621
  elif O0OO0O0000000O00O =='Caja':#line:691
622
  OOOO000O0000O00O0 ,O0OOO00O00000OO0O ,O0OOOO0O0O0000O00 =await cargar_archivo ("ubicacion","Ubicacion: ","cajas/"+str (OOOO00O0OO00OOOOO ))#line:692
623
  OO0OO0OOOOOOOOO00 =await cargar_archivo ("image","Imagen: ","cajas/"+str (OOOO00O0OO00OOOOO ))#line:693
624
  O00000O0O000O0O00 ,OOOO0O00O000OOOOO =await cargar_archivo_grande ("title_material","Instrumental : ","cajas/"+str (OOOO00O0OO00OOOOO ))#line:694
625
- return render_template ('caja_trauma.html',title =OOO0OOOO00OO00O0O ,files_instru =O00000O0O000O0O00 ,texto_instru =OOOO0O00O000OOOOO ,texto_ubi =OOOO000O0000O00O0 ,file_texto_ubi =O0OOOO0O0O0000O00 ,file_imagen =OO0OO0OOOOOOOOO00 ,user_image6 =OO00OOO00OO00O000 ,user_image7 =OOO00O000OOOO0000 )#line:698
626
  elif O0OO0O0000000O00O =='Instrumental':#line:699
627
  OO00O0OOOOO0OO00O =await cargar_instrumental (OOOO00O0OO00OOOOO ,'listado_completo_cajas/1')#line:700
628
- return render_template ('instrumental_trauma.html',cajas =OO00O0OOOOO0OO00O ,texto ='El instrumental que buscas esta presente en las siguientes cajas: ',title =OOO0OOOO00OO00O0O ,user_image6 =OO00OOO00OO00O000 ,user_image7 =OOO00O000OOOO0000 )#line:704
629
  @app .route ("/protocolos_trauma",methods =['GET','POST'])#line:706
630
  async def protocolos_trauma ():#line:707
631
  OO0000000O0OO0O0O =request .args .get ('link2')#line:708
632
  O0OOO000OO00O0O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:709
 
633
  OO00O0000OO0O0000 =await boton_word_ppt (1 ,"field_protocolo",OO0000000O0OO0O0O )#line:710
634
  if len (OO00O0000OO0O0000 )==1 :#line:711
635
- return render_template ('protocolo1.html',protocolos =OO00O0000OO0O0000 ,user_image7 =O0OOO000OO00O0O00 )#line:712
636
  else :#line:713
637
- return render_template ('protocolo.html',protocolos =OO00O0000OO0O0000 ,user_image7 =O0OOO000OO00O0O00 )#line:714
638
  @app .route ("/guia_visual_trauma",methods =['GET','POST'])#line:716
639
  async def guia_visual_trauma ():#line:717
640
  OO0O0OO000OO000OO =request .args .get ('link2')#line:718
@@ -649,6 +653,7 @@ async def guia_visual_trauma ():#line:717
649
  async def pdf_casa_trauma ():#line:727
650
  O000OOO0OOO000000 =request .args .get ('link2')#line:728
651
  O0000000OO0000O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:729
 
652
  OO000OO00O0000000 =await boton_pdf_video (1 ,"field_pdf",O000OOO0OOO000000 )#line:730
653
  O0O00O0O0OOOO0OOO =0 #line:731
654
  for OO0O00OO0O0OO00O0 ,OO0O0OOOO0OO0OO0O in OO000OO00O0000000 .items ():#line:732
@@ -657,15 +662,16 @@ async def pdf_casa_trauma ():#line:727
657
  if len (OO000OO00O0000000 .items ())==1 :#line:735
658
  if O0O00O0O0OOOO0OOO ==1 :#line:736
659
  print ("bien")#line:737
660
- return render_template ('pdf_casa_comercial1.html',user_image7 =O0000000OO0000O00 ,titulos =OO000OO00O0000000 )#line:738
661
  else :#line:739
662
- return render_template ('pdf_casa_comercial.html',user_image7 =O0000000OO0000O00 ,titulos =OO000OO00O0000000 )#line:740
663
  else :#line:741
664
- return render_template ('pdf_casa_comercial.html',user_image7 =O0000000OO0000O00 ,titulos =OO000OO00O0000000 )#line:742
665
  @app .route ("/videos_trauma",methods =['GET','POST'])#line:744
666
  async def videos_trauma ():#line:745
667
  O0O000O0OOO00OOO0 =request .args .get ('link2')#line:746
668
  OO0OOO00O0O00000O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:747
 
669
  OOO000O000OO000O0 =await boton_pdf_video (1 ,"field_video",O0O000O0OOO00OOO0 )#line:748
670
  OOO00OO0OO000O0OO =0 #line:749
671
  for OOO00O0OOOOO0OO0O ,O000O0000O0000O00 in OOO000O000OO000O0 .items ():#line:750
@@ -674,23 +680,24 @@ async def videos_trauma ():#line:745
674
  if len (OOO000O000OO000O0 .items ())==1 :#line:753
675
  if OOO00OO0OO000O0OO ==1 :#line:754
676
  print ("bien")#line:755
677
- return render_template ('videos1.html',user_image7 =OO0OOO00O0O00000O ,titulos =OOO000O000OO000O0 )#line:756
678
  else :#line:757
679
- return render_template ('videos.html',user_image7 =OO0OOO00O0O00000O ,titulos =OOO000O000OO000O0 )#line:758
680
  else :#line:759
681
- return render_template ('videos.html',user_image7 =OO0OOO00O0O00000O ,titulos =OOO000O000OO000O0 )#line:760
682
  @app .route ("/materiales_trauma",methods =['GET','POST'])#line:762
683
  async def materiales_trauma ():#line:763
684
  O0O0O00000OOOOOOO =request .args .get ('link2')#line:764
685
  O000O0O000O0000O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:765
 
686
  O0O0O000OO0OO00O0 =await boton_materiales (1 ,O0O0O00000OOOOOOO )#line:766
687
  if len (O0O0O000OO0OO00O0)==0 :#line:767
688
- return render_template ('materiales.html',user_image7 =O000O0O000O0000O0 ,cajas =O0O0O000OO0OO00O0 ,no_hay ="No hay instrumental")#line:768
689
  else :#line:769
690
  if len (O0O0O000OO0OO00O0 )==1 :#line:770
691
- return render_template ('materiales.html',user_image7 =O000O0O000O0000O0 ,cajas =O0O0O000OO0OO00O0 )#line:771
692
  else :#line:772
693
- return render_template ('materiales.html',user_image7 =O000O0O000O0000O0 ,cajas =O0O0O000OO0OO00O0 )#line:773
694
  @app .route ("/escuchar_trauma1",methods =['GET','POST'])#line:775
695
  async def escuchar_trauma1 ():#line:776
696
  OOO0OOO00O000OO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:777
@@ -721,6 +728,7 @@ async def escuchar_trauma ():#line:788
721
  OO00O0O0O00OOO0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:808
722
  O0OO000OOOOOO0O0O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:809
723
  O000O0O00000O0OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:810
 
724
  O0O0OO0OO0O0OO0OO =sr .Recognizer ()#line:814
725
  O000OOOO000OOOO00 =""#line:816
726
  if request .method =="POST":#line:818
@@ -747,9 +755,9 @@ async def escuchar_trauma ():#line:788
747
  OOO0000OOOOO00000 ,OO0OOO00OOO0OOO00 ,OO00O00OO0OO00O00 =await buscar_faq (OOO00OOOOOO00O00O ,0 )#line:848
748
  if OO0OO0O0O0000O0O0 ==None :#line:849
749
  if len (OOO0000OOOOO00000 )==0 :#line:850
750
- return render_template ('escuchar_trauma.html',nid2 =0 ,result_busqueda =OOOO0OOOOO0OOOO00 ,prediction_text ="No hay resultados para tu busqueda",user_image6 =O0OO000OOOOOO0O0O ,user_image7 =O000O0O00000O0OO0 ,user_image5 =OO00O0O0O00OOO0O0 ,user_image8 =O0OOOO0000O00O000 ,user_image9 =OOO000OOOO0000OO0 ,user_image10 =OO0O0OOO0OOOO0OOO ,user_image11 =OOO000000000000OO ,user_image12 =OO00OO0O0OO0OO000 )#line:851
751
  else :#line:853
752
- return render_template ('escuchar_trauma.html',nid2 =0 ,faqs =OOO0000OOOOO00000 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OOOO0OOOOO0OOOO00 ,user_image6 =O0OO000OOOOOO0O0O ,user_image7 =O000O0O00000O0OO0 ,user_image5 =OO00O0O0O00OOO0O0 ,user_image8 =O0OOOO0000O00O000 ,user_image9 =OOO000OOOO0000OO0 ,user_image10 =OO0O0OOO0OOOO0OOO ,user_image11 =OOO000000000000OO ,user_image12 =OO00OO0O0OO0OO000 )#line:854
753
  elif len (OO0OO0O0O0000O0O0 )>=1 :#line:856
754
  OO00O0O000O000000 =[]#line:857
755
  OOOO0OO0O00OO0000 =[]#line:858
@@ -763,12 +771,12 @@ async def escuchar_trauma ():#line:788
763
  print (OOOO0OOOOO0OOOO00 )#line:866
764
  if len (OOO0000OOOOO00000 )==0 :#line:867
765
  print ("render1")#line:868
766
- return render_template ('escuchar_trauma.html',nid2 =0 ,result_busqueda =OOOO0OOOOO0OOOO00 ,user_image6 =O0OO000OOOOOO0O0O ,user_image7 =O000O0O00000O0OO0 ,user_image5 =OO00O0O0O00OOO0O0 ,user_image8 =O0OOOO0000O00O000 ,user_image9 =OOO000OOOO0000OO0 ,user_image10 =OO0O0OOO0OOOO0OOO ,user_image11 =OOO000000000000OO ,user_image12 =OO00OO0O0OO0OO000 )#line:869
767
  else :#line:871
768
  print ("render2")#line:872
769
- return render_template ('buscador_trauma.html',faqs =OOO0000OOOOO00000 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OOOO0OOOOO0OOOO00 ,user_image4 =OOOO00OOO0OOO000O ,user_image5 =OO00O0O0O00OOO0O0 ,user_image6 =O0OO000OOOOOO0O0O ,user_image7 =O000O0O00000O0OO0 ,user_image8 =O0OOOO0000O00O000 ,user_image9 =OOO000OOOO0000OO0 ,user_image10 =OO0O0OOO0OOOO0OOO ,user_image11 =OOO000000000000OO ,user_image12 =OO00OO0O0OO0OO000 ,nid2 =0 )#line:873
770
  else :#line:875
771
- return render_template ('escuchar_trauma.html',nid2 =0 ,result_busqueda =OOOO0OOOOO0OOOO00 ,prediction_text ="No te he entendido bien, dale al boton `Escuchar´ y repite tu pregunta",user_image5 =OO00O0O0O00OOO0O0 ,user_image6 =O0OO000OOOOOO0O0O ,user_image7 =O000O0O00000O0OO0 ,user_image8 =O0OOOO0000O00O000 ,user_image9 =OOO000OOOO0000OO0 ,user_image10 =OO0O0OOO0OOOO0OOO ,user_image11 =OOO000000000000OO ,user_image12 =OO00OO0O0OO0OO000 )#line:876
772
  @app .route ("/buscador_admision",methods =['GET','POST'])#line:878
773
  async def buscador_admision ():#line:879
774
  O0OO00OOO000OOOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:880
@@ -819,8 +827,9 @@ async def buscador_admision ():#line:879
819
  async def mapa_camas ():#line:925
820
  OO0000O0O00O0000O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:926
821
  O0OO0OOOO00OO0OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:927
 
822
  OO00O0O0OO0O00OO0 ,O0O0O0O00OOO0O00O ,O00O00OOO000O0OOO ,OOO00OOOO00O000O0 =await cargar_botones_pdf_admision ()#line:928
823
- return render_template ('mapa_camas.html',text =OO00O0O0OO0O00OO0 ,user_image6 =OO0000O0O00O0000O ,user_image7 =O0OO0OOOO00OO0OOO )#line:929
824
  @app .route ("/ambulancias",methods =['GET','POST'])#line:931
825
  async def ambulancias ():#line:932
826
  O0O0OOOO0O0O00OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:933
@@ -832,14 +841,16 @@ async def ambulancias ():#line:932
832
  async def programacion_quirurgica ():#line:939
833
  O0OOO0OO0OOO0OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:940
834
  OO00000OOO0O0OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:941
 
835
  O0000O0O000O0O000 ,O0000OOO000O0O0O0 ,O0OOO0OOO00OO00O0 ,OOOO0O00000O0O00O =await cargar_botones_pdf_admision ()#line:942
836
- return render_template ('programacion_quirurgica.html',text =O0OOO0OOO00OO00O0 ,user_image6 =O0OOO0OO0OOO0OO0O ,user_image7 =OO00000OOO0O0OO0O )#line:943
837
  @app .route ("/otros",methods =['GET','POST'])#line:945
838
  async def otros ():#line:946
839
  O000O0O0O00000000 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:947
840
  O0000OO00O0O0O0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:948
 
841
  OO0O0OO0O0O0OOO00 ,O0O0OOOOO00O00OOO ,OOOOOO00OOO0OOO0O ,OOO0OO00OOOO0OO0O =await cargar_botones_pdf_admision ()#line:949
842
- return render_template ('otros.html',text =OOO0OO00OOOO0OO0O ,user_image6 =O000O0O0O00000000 ,user_image7 =O0000OO00O0O0O0O0 )#line:950
843
  @app .route ("/escuchar_admision1",methods =['GET','POST'])#line:952
844
  async def escuchar_admision1 ():#line:953
845
  O00O0OOO00OO0O0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'otros_img.png')#line:954
@@ -869,6 +880,7 @@ async def escuchar_admision ():#line:964
869
  O00OOOOOOO0O0OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:984
870
  OO0OOOO0OO000OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:985
871
  OO0O000OO0O0OOO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:986
 
872
  O0OO0OOOO0O0O0O0O =sr .Recognizer ()#line:988
873
  O0O0O0000OO0O000O =""#line:990
874
  if request .method =="POST":#line:992
@@ -894,9 +906,9 @@ async def escuchar_admision ():#line:964
894
  OO0OOO00OO00O00O0 ,OOO0OOOOO0OO0O000 ,O0O00OO0O0OO00O00 =await buscar_faq (O0OO00O0OO0OOO0O0 ,1 )#line:1021
895
  if OO0O0O0OOO000OOOO ==None :#line:1022
896
  if len (O0O00OO0O0OO00O00 )==0 :#line:1023
897
- return render_template ('escuchar_admision.html',user_image8 =OO0OO00OO00OO0000 ,user_image9 =O00O000OO00OO0O00 ,user_image10 =OO00O00O00O0OO00O ,user_image11 =O0O00O0O00O0OOOO0 ,result_busqueda =OO0O0O00O00OOOOO0 ,prediction_text ="No hay resultados para tu busqueda",user_image4 =OOO0O000O000000OO ,user_image5 =O00OOOOOOO0O0OO0O ,user_image6 =OO0OOOO0OO000OO0O ,user_image7 =OO0O000OO0O0OOO00 )#line:1024
898
  else :#line:1025
899
- return render_template ('escuchar_admision.html',faqs =O0O00OO0O0OO00O00 ,faq_titulo ="Preguntas y respuestas: ",user_image8 =OO0OO00OO00OO0000 ,user_image9 =O00O000OO00OO0O00 ,user_image10 =OO00O00O00O0OO00O ,user_image11 =O0O00O0O00O0OOOO0 ,result_busqueda =OO0O0O00O00OOOOO0 ,user_image4 =OOO0O000O000000OO ,user_image5 =O00OOOOOOO0O0OO0O ,user_image6 =OO0OOOO0OO000OO0O ,user_image7 =OO0O000OO0O0OOO00 )#line:1026
900
  elif len (OO0O0O0OOO000OOOO )>=1 :#line:1027
901
  O0O0O0OOOO0OO00O0 =[]#line:1028
902
  OOO00OOO0O0000000 =[]#line:1029
@@ -913,12 +925,12 @@ async def escuchar_admision ():#line:964
913
  O0OOO000OOO0OOOO0 =O0OOO000OOO0OOOO0 [0 ]#line:1040
914
  OO0O0O00O00OOOOO0 [O0O00OO000OO0OOOO ['title']]="https://orva.tedcas.com/"+str (O0OOO000OOO0OOOO0 ['url'])#line:1041
915
  if len (O0O00OO0O0OO00O00 )==0 :#line:1042
916
- return render_template ('escuchar_admision.html',user_image8 =OO0OO00OO00OO0000 ,user_image9 =O00O000OO00OO0O00 ,user_image10 =OO00O00O00O0OO00O ,user_image11 =O0O00O0O00O0OOOO0 ,result_busqueda =OO0O0O00O00OOOOO0 ,user_image4 =OOO0O000O000000OO ,user_image5 =O00OOOOOOO0O0OO0O ,user_image6 =OO0OOOO0OO000OO0O ,user_image7 =OO0O000OO0O0OOO00 )#line:1043
917
  else :#line:1044
918
  print ("render2")#line:1045
919
- return render_template ('buscador_admision.html',faqs =O0O00OO0O0OO00O00 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OO0O0O00O00OOOOO0 ,user_image4 =OOO0O000O000000OO ,user_image5 =O00OOOOOOO0O0OO0O ,user_image6 =OO0OOOO0OO000OO0O ,user_image7 =OO0O000OO0O0OOO00 ,user_image8 =O0O0OOOO0O00O00O0 ,user_image9 =OOOO0O0O000OOOO0O ,user_image10 =OO0O0OO00O000O00O ,user_image11 =OO0O000O000O0OOO0 ,user_image12 =O0OO0O00000OO00OO ,nid2 =0 )#line:1046
920
  else :#line:1048
921
- return render_template ('escuchar_admision.html',user_image8 =OO0OO00OO00OO0000 ,user_image9 =O00O000OO00OO0O00 ,user_image10 =OO00O00O00O0OO00O ,user_image11 =O0O00O0O00O0OOOO0 ,prediction_text ="No te he entendido bien, dale al boton `Escuchar´ y repite tu pregunta",result_busqueda =OO0O0O00O00OOOOO0 ,user_image4 =OOO0O000O000000OO ,user_image5 =O00OOOOOOO0O0OO0O ,user_image6 =OO0OOOO0OO000OO0O ,user_image7 =OO0O000OO0O0OOO00 )#line:1049
922
  @app .route ("/buscador_uro",methods =['GET','POST'])#line:1051
923
  async def buscador_uro ():#line:1052
924
  O00O0OO00OOOOOOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:1053
@@ -931,21 +943,22 @@ async def buscador_uro ():#line:1052
931
  O0O00O00O000000O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:1060
932
  O00O0OOOO0O00O0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'preguntas_respuestas.png')#line:1061
933
  OO0OO0O0O0OO0OOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:1062
 
934
  O0O0000OO0OO0O000 =str (request .form .to_dict ())#line:1063
935
  O0O0000OO0OO0O000 =adaptar_salida (O0O0000OO0OO0O000 )#line:1064
936
  O0OOOO0000000O0O0 ={}#line:1065
937
  O0OOOO0000000O0O0 [""]=""#line:1066
938
  if len (O0O0000OO0OO0O000 )==0 :#line:1067
939
- return render_template ('buscador_uro.html',preguntas_respuestas =O00O0OOOO0O00O0O0 ,result_busqueda =O0OOOO0000000O0O0 ,user_image4 =O00O0OO00OOOOOOOO ,user_image5 =O00O00O00O00OOO0O ,user_image6 =OO0O00O00OOOO0O0O ,user_image7 =O0OO0OO0O0O00O0OO ,user_image8 =O00O00O0000OO0000 ,user_image9 =O0O00O00O000000O0 ,user_image10 =OO0O000OO00OOOOOO ,user_image11 =OO0OO0O0O0OO0OOOO ,user_image12 =O00O00OOOO000OOO0 ,nid2 =0 )#line:1068
940
  elif O0O0000OO0OO0O000 !=None or "{}":#line:1069
941
  OO0000000OO0O00OO =1620 #line:1070
942
  O00000000O00OO0O0 =await cargar_base_datos (O0O0000OO0OO0O000 ,OO0000000OO0O00OO )#line:1071
943
  O0OO00OOOO00O0OOO ,OOO00OOOOOO0O0OOO ,O0O0O0OOO0000OOO0 =await buscar_faq (O0O0000OO0OO0O000 ,1 )#line:1072
944
  if O00000000O00OO0O0 ==None :#line:1073
945
  if len (OOO00OOOOOO0O0OOO )==0 :#line:1074
946
- return render_template ('buscador_uro.html',preguntas_respuestas =O00O0OOOO0O00O0O0 ,result_busqueda =O0OOOO0000000O0O0 ,prediction_text ="No hay resultados para tu busqueda",user_image4 =O00O0OO00OOOOOOOO ,user_image5 =O00O00O00O00OOO0O ,user_image6 =OO0O00O00OOOO0O0O ,user_image7 =O0OO0OO0O0O00O0OO ,user_image8 =O00O00O0000OO0000 ,user_image9 =O0O00O00O000000O0 ,user_image10 =OO0O000OO00OOOOOO ,user_image11 =OO0OO0O0O0OO0OOOO ,user_image12 =O00O00OOOO000OOO0 ,nid2 =0 )#line:1075
947
  else :#line:1076
948
- return render_template ('buscador_uro.html',preguntas_respuestas =O00O0OOOO0O00O0O0 ,faqs =OOO00OOOOOO0O0OOO ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOOO0000000O0O0 ,user_image4 =O00O0OO00OOOOOOOO ,user_image5 =O00O00O00O00OOO0O ,user_image6 =OO0O00O00OOOO0O0O ,user_image7 =O0OO0OO0O0O00O0OO ,user_image8 =O00O00O0000OO0000 ,user_image9 =O0O00O00O000000O0 ,user_image10 =OO0O000OO00OOOOOO ,user_image11 =OO0OO0O0O0OO0OOOO ,user_image12 =O00O00OOOO000OOO0 ,nid2 =0 )#line:1077
949
  elif len (O00000000O00OO0O0 )>=1 :#line:1078
950
  OOO00OOOOOO00O0OO =[]#line:1079
951
  OOO0OOOO00O0000OO =[]#line:1080
@@ -956,12 +969,12 @@ async def buscador_uro ():#line:1052
956
  for OOO000OO0O000O000 ,O0OO000O00OOOO00O in enumerate (OOO00OOOOOO00O0OO ):#line:1085
957
  O0OOOO0000000O0O0 [OOO0OOOO00O0000OO [OOO000OO0O000O000 ]]=O0OO000O00OOOO00O #line:1086
958
  if len (OOO00OOOOOO0O0OOO )!=0 :#line:1087
959
- return render_template ('buscador_uro1.html',faqs =OOO00OOOOOO0O0OOO ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOOO0000000O0O0 ,user_image4 =O00O0OO00OOOOOOOO ,user_image5 =O00O00O00O00OOO0O ,user_image6 =OO0O00O00OOOO0O0O ,user_image7 =O0OO0OO0O0O00O0OO ,user_image8 =O00O00O0000OO0000 ,user_image9 =O0O00O00O000000O0 ,user_image10 =OO0O000OO00OOOOOO ,user_image11 =OO0OO0O0O0OO0OOOO ,user_image12 =O00O00OOOO000OOO0 ,nid2 =0 )#line:1088
960
  else :#line:1089
961
  if len(O0OOOO0000000O0O0)==1:
962
  return redirect(url_for('resultado_uro',link=OOO0OOOO00O0000OO))
963
  else:
964
- return render_template ('buscador_uro1.html',result_busqueda =O0OOOO0000000O0O0 ,user_image4 =O00O0OO00OOOOOOOO ,user_image5 =O00O00O00O00OOO0O ,user_image6 =OO0O00O00OOOO0O0O ,user_image7 =O0OO0OO0O0O00O0OO ,user_image8 =O00O00O0000OO0000 ,user_image9 =O0O00O00O000000O0 ,user_image10 =OO0O000OO00OOOOOO ,user_image11 =OO0OO0O0O0OO0OOOO ,user_image12 =O00O00OOOO000OOO0 ,nid2 =0 )#line:1090
965
  @app .route ("/resultado_uro",methods =['GET','POST'])#line:1092
966
  async def resultado_uro ():#line:1093
967
  OO0O0OOO00OO00OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:1094
@@ -971,31 +984,33 @@ async def resultado_uro ():#line:1093
971
  OOOOO0O000OOO00O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:1098
972
  OO00O0OOOOOO0OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:1099
973
  OOO0OOO00000000OO =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:1100
 
974
  OOO00O00O0O0O00OO =request .args .get ('link')#line:1101
975
  OO000OOOOOO0OOO00 ,O0O000OO00O000OOO =await cargar_tipo (OOO00O00O0O0O00OO ,1620 )#line:1102
976
  O00OOO0OO00O00OOO =OO000OOOOOO0OOO00 ['title']#line:1103
977
  if O0O000OO00O000OOO =="Intervencion":#line:1104
978
  print ("hola1")#line:1105
979
  OO000O00000O00O0O ,O0OO000O0O00OO000 =await cargar_caja (str (OOO00O00O0O0O00OO ),'Instrumental - Cajas: ')#line:1106
980
- return render_template ('intervencion_uro.html',user_image8 =OOOOO0O000OOO00O0 ,user_image9 =OO00O0OOOOOO0OO0O ,user_image10 =OOO0O0O00O0O0000O ,user_image11 =OOO0OOO00000000OO ,user_image12 =O0O0OO0OO0OO0O00O ,instrumental =OO000O00000O00O0O ,texto_cajas =O0OO000O0O00OO000 ,title =O00OOO0OO00O00OOO ,user_image6 =OO0O0OOO00OO00OOO ,user_image7 =OOOOOOOO0O0OO0O00 ,nid2 =OOO00O00O0O0O00OO )#line:1107
981
  elif O0O000OO00O000OOO =='Caja':#line:1108
982
  OO0OO00OO0O00OOOO ,O0OOO0OOOO0OOO0OO ,O0O00000O00O00000 =await cargar_archivo ("ubicacion","Ubicacion: ","cajas/"+str (OOO00O00O0O0O00OO ))#line:1109
983
  O000OO00OOO0O0O00 =await cargar_archivo ("image","Imagen: ","cajas/"+str (OOO00O00O0O0O00OO ))#line:1110
984
  OOO000O0O0OOO0OO0 ,OO0OOOOO0OO00000O =await cargar_archivo_grande ("title_material","Instrumental : ","cajas/"+str (OOO00O00O0O0O00OO ))#line:1111
985
- return render_template ('caja_trauma.html',title =O00OOO0OO00O00OOO ,files_instru =OOO000O0O0OOO0OO0 ,texto_instru =OO0OOOOO0OO00000O ,texto_ubi =OO0OO00OO0O00OOOO ,file_texto_ubi =O0O00000O00O00000 ,file_imagen =O000OO00OOO0O0O00 ,user_image6 =OO0O0OOO00OO00OOO ,user_image7 =OOOOOOOO0O0OO0O00 )#line:1115
986
  elif O0O000OO00O000OOO =='Instrumental':#line:1116
987
  print ("hola2")#line:1117
988
  OO00O00OOO0O000O0 =await cargar_instrumental (OOO00O00O0O0O00OO ,'listado_completo_cajas/1620')#line:1118
989
- return render_template ('instrumental_uro.html',cajas =OO00O00OOO0O000O0 ,texto ='El instrumental que buscas esta presente en las siguientes cajas: ',title =O00OOO0OO00O00OOO ,user_image6 =OO0O0OOO00OO00OOO ,user_image7 =OOOOOOOO0O0OO0O00 )#line:1122
990
  @app .route ("/protocolos_uro",methods =['GET','POST'])#line:1124
991
  async def protocolos_uro ():#line:1125
992
  OOOO0OOO0OO0OOO00 =request .args .get ('link2')#line:1126
993
  O0O00OOOO0OO0O00O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:1127
 
994
  OO0OO0O0O00O00O00 =await boton_word_ppt (1620 ,"field_protocolo",OOOO0OOO0OO0OOO00 )#line:1128
995
  if len (OO0OO0O0O00O00O00 )==1 :#line:1129
996
- return render_template ('protocolo1.html',protocolos =OO0OO0O0O00O00O00 ,user_image7 =O0O00OOOO0OO0O00O )#line:1130
997
  else :#line:1131
998
- return render_template ('protocolo.html',protocolos =OO0OO0O0O00O00O00 ,user_image7 =O0O00OOOO0OO0O00O )#line:1132
999
  @app .route ("/guia_visual_uro",methods =['GET','POST'])#line:1134
1000
  async def guia_visual_uro ():#line:1135
1001
  OOO0OOOOOO00O0O0O =request .args .get ('link2')#line:1136
@@ -1010,6 +1025,7 @@ async def guia_visual_uro ():#line:1135
1010
  async def pdf_casa_uro ():#line:1145
1011
  OO0O000OOOO00OOO0 =request .args .get ('link2')#line:1146
1012
  O00OOOO0OO00OO000 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:1147
 
1013
  OOO00O0000O00O000 =await boton_pdf_video (1620 ,"field_pdf",OO0O000OOOO00OOO0 )#line:1148
1014
  O00OOOO0O00O00O0O =0 #line:1149
1015
  for O0OO00OO0OO00O00O ,OOO000OO0OOO0OO0O in OOO00O0000O00O000 .items ():#line:1150
@@ -1018,15 +1034,16 @@ async def pdf_casa_uro ():#line:1145
1018
  if len (OOO00O0000O00O000 .items ())==1 :#line:1153
1019
  if O00OOOO0O00O00O0O ==1 :#line:1154
1020
  print ("bien")#line:1155
1021
- return render_template ('pdf_casa_comercial1.html',user_image7 =O00OOOO0OO00OO000 ,titulos =OOO00O0000O00O000 )#line:1156
1022
  else :#line:1157
1023
- return render_template ('pdf_casa_comercial.html',user_image7 =O00OOOO0OO00OO000 ,titulos =OOO00O0000O00O000 )#line:1158
1024
  else :#line:1159
1025
- return render_template ('pdf_casa_comercial.html',user_image7 =O00OOOO0OO00OO000 ,titulos =OOO00O0000O00O000 )#line:1160
1026
  @app .route ("/videos_uro",methods =['GET','POST'])#line:1162
1027
  async def videos_uro ():#line:1163
1028
  OO0000OO000O00000 =request .args .get ('link2')#line:1164
1029
  OOOOO00000O0OO0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:1165
 
1030
  O0O0OO0000OO0OOO0 =await boton_pdf_video (1620 ,"field_video",OO0000OO000O00000 )#line:1166
1031
  OOOOOO0O0O0OO0O0O =0 #line:1167
1032
  for O00O00O0OOOOOOOO0 ,OOO0000O0000O0000 in O0O0OO0000OO0OOO0 .items ():#line:1168
@@ -1034,23 +1051,24 @@ async def videos_uro ():#line:1163
1034
  OOOOOO0O0O0OO0O0O =OOOOOO0O0O0OO0O0O +1 #line:1170
1035
  if len (O0O0OO0000OO0OOO0 .items ())==1 :#line:1171
1036
  if OOOOOO0O0O0OO0O0O ==1 :#line:1172
1037
- return render_template ('videos1.html',user_image7 =OOOOO00000O0OO0O0 ,titulos =O0O0OO0000OO0OOO0 )#line:1173
1038
  else :#line:1174
1039
- return render_template ('videos.html',user_image7 =OOOOO00000O0OO0O0 ,titulos =O0O0OO0000OO0OOO0 )#line:1175
1040
  else :#line:1176
1041
- return render_template ('videos.html',user_image7 =OOOOO00000O0OO0O0 ,titulos =O0O0OO0000OO0OOO0 )#line:1177
1042
  @app .route ("/materiales_uro",methods =['GET','POST'])#line:1179
1043
  async def materiales_uro ():#line:1180
1044
  O00OO0OO0OOO0OOO0 =request .args .get ('link2')#line:1181
1045
  OOO00O00O00OO00O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:1182
 
1046
  O0O00O00O000O000O =await boton_materiales (1620 ,O00OO0OO0OOO0OOO0 )#line:1183
1047
  if len (O0O00O00O000O000O [''])==0 :#line:1184
1048
- return render_template ('materiales_uro.html',user_image7 =OOO00O00O00OO00O0 ,cajas =O0O00O00O000O000O ,no_hay ="No hay instrumental")#line:1185
1049
  else :#line:1186
1050
  if len (O0O00O00O000O000O )==1 :#line:1187
1051
- return render_template ('materiales_uro1.html',user_image7 =OOO00O00O00OO00O0 ,cajas =O0O00O00O000O000O )#line:1188
1052
  else :#line:1189
1053
- return render_template ('materiales_uro.html',user_image7 =OOO00O00O00OO00O0 ,cajas =O0O00O00O000O000O )#line:1190
1054
  @app .route ("/escuchar_uro1",methods =['GET','POST'])#line:1192
1055
  async def escuchar_uro1 ():#line:1193
1056
  O0000O00O00O0000O =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:1194
@@ -1081,6 +1099,7 @@ async def escuchar_uro ():#line:1205
1081
  OOO0O00O00OOOOOO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:1223
1082
  O00OO0OOO00OOO00O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:1224
1083
  O00OO00OOO0O00O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:1225
 
1084
  O00O0O000000OOO0O =sr .Recognizer ()#line:1227
1085
  OOOOO000000O00O00 =""#line:1229
1086
  if request .method =="POST":#line:1231
@@ -1105,9 +1124,9 @@ async def escuchar_uro ():#line:1205
1105
  O0OOO000O00000000 ,OOOOO000O00OOOOO0 ,O0O00OO00OO000O00 =await buscar_faq (O000OO00OOO0O0OO0 ,0 )#line:1258
1106
  if O0OO0OO0000OO0OOO ==None :#line:1259
1107
  if len (OOOOO000O00OOOOO0 )==0 :#line:1260
1108
- return render_template ('escuchar_uro.html',nid2 =0 ,result_busqueda =O0OOOO00O000O0OO0 ,prediction_text ="No hay resultados para tu busqueda",user_image6 =O00OO0OOO00OOO00O ,user_image7 =O00OO00OOO0O00O00 ,user_image5 =OOO0O00O00OOOOOO0 ,user_image8 =O0000000O0O000O00 ,user_image9 =O000OO0O00OO0000O ,user_image10 =O00000O0O00OOO0O0 ,user_image11 =OOOOO00OO0O00OO0O ,user_image12 =OO00O0O00000OOO0O )#line:1261
1109
  else :#line:1262
1110
- return render_template ('escuchar_uro.html',nid2 =0 ,faqs =OOOOO000O00OOOOO0 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOOO00O000O0OO0 ,user_image6 =O00OO0OOO00OOO00O ,user_image7 =O00OO00OOO0O00O00 ,user_image5 =OOO0O00O00OOOOOO0 ,user_image8 =O0000000O0O000O00 ,user_image9 =O000OO0O00OO0000O ,user_image10 =O00000O0O00OOO0O0 ,user_image11 =OOOOO00OO0O00OO0O ,user_image12 =OO00O0O00000OOO0O )#line:1263
1111
  elif len (O0OO0OO0000OO0OOO )>=1 :#line:1264
1112
  O0O00OO0OO00O0OOO =[]#line:1265
1113
  O0000OOOO00O0OOO0 =[]#line:1266
@@ -1118,11 +1137,11 @@ async def escuchar_uro ():#line:1205
1118
  for O0OO00000000O00OO ,OO0000OOO000OOOO0 in enumerate (O0O00OO0OO00O0OOO ):#line:1271
1119
  O0OOOO00O000O0OO0 [O0000OOOO00O0OOO0 [O0OO00000000O00OO ]]=OO0000OOO000OOOO0 #line:1272
1120
  if len (OOOOO000O00OOOOO0 )==0 :#line:1274
1121
- return render_template ('escuchar_uro.html',nid2 =0 ,result_busqueda =O0OOOO00O000O0OO0 ,user_image6 =O00OO0OOO00OOO00O ,user_image7 =O00OO00OOO0O00O00 ,user_image5 =OOO0O00O00OOOOOO0 ,user_image8 =O0000000O0O000O00 ,user_image9 =O000OO0O00OO0000O ,user_image10 =O00000O0O00OOO0O0 ,user_image11 =OOOOO00OO0O00OO0O ,user_image12 =OO00O0O00000OOO0O )#line:1275
1122
  else :#line:1276
1123
- return render_template ('buscador_uro.html',faqs =OOOOO000O00OOOOO0 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOOO00O000O0OO0 ,user_image4 =O00000OOOO0O00O0O ,user_image5 =OOO0O00O00OOOOOO0 ,user_image6 =O00OO0OOO00OOO00O ,user_image7 =O00OO00OOO0O00O00 ,user_image8 =O0000000O0O000O00 ,user_image9 =O000OO0O00OO0000O ,user_image10 =O00000O0O00OOO0O0 ,user_image11 =OOOOO00OO0O00OO0O ,user_image12 =OO00O0O00000OOO0O ,nid2 =0 )#line:1278
1124
  else :#line:1280
1125
- return render_template ('escuchar_uro.html',nid2 =0 ,result_busqueda =O0OOOO00O000O0OO0 ,prediction_text ="No te he entendido bien, dale al boton `Escuchar´ y repite tu pregunta",user_image5 =OOO0O00O00OOOOOO0 ,user_image6 =O00OO0OOO00OOO00O ,user_image7 =O00OO00OOO0O00O00 ,user_image8 =O0000000O0O000O00 ,user_image9 =O000OO0O00OO0000O ,user_image10 =O00000O0O00OOO0O0 ,user_image11 =OOOOO00OO0O00OO0O ,user_image12 =OO00O0O00000OOO0O )#line:1281
1126
  @app .route ("/ajustes")#line:1283
1127
  async def ajustes ():#line:1284
1128
  OO00OOOOOO0OO00O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'estrella.png')#line:1285
 
559
  OO00O0OO0O000OO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:628
560
  OOO000O0OOO00O0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:629
561
  O00O00O0OO0OO000O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:630
562
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
563
+ return render_template ('seleccion_trauma.html',abrir=abrir, user_image4 =O0000O0OOO00OO00O ,user_image5 =OO00O0OO0O000OO00 ,user_image6 =OOO000O0OOO00O0OO ,user_image7 =O00O00O0OO0OO000O )#line:631
564
  @app .route ("/buscador_trauma",methods =['GET','POST'])#line:633
565
  async def buscador_trauma ():#line:634
566
  O00O000OO0O000OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:635
 
573
  O0O00OOOO00O0000O =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:642
574
  O0OOO0O0O00OOO0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'preguntas_respuestas.png')#line:643
575
  OO0OO0OOO0O0OO0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:644
576
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
577
  OOOO0OOO0OO0OOO0O =str (request .form .to_dict ())#line:645
578
  OOOO0OOO0OO0OOO0O =adaptar_salida (OOOO0OOO0OO0OOO0O )#line:646
579
  OO0O000O00O00O0OO ={}#line:647
580
  OO0O000O00O00O0OO [""]=""#line:648
581
  if len (OOOO0OOO0OO0OOO0O )==0 :#line:649
582
+ return render_template ('buscador_trauma.html',abrir=abrir, preguntas_respuestas =O0OOO0O0O00OOO0O0 ,result_busqueda =OO0O000O00O00O0OO ,user_image4 =O00O000OO0O000OO0 ,user_image5 =OOO000OO0OO0OO000 ,user_image6 =OOO0000OOO000OOO0 ,user_image7 =O0OOOOOO0OO0OO00O ,user_image8 =OOOO00O0O0OOO0OO0 ,user_image9 =O0O00OOOO00O0000O ,user_image10 =OO000OO0OOO00OO00 ,user_image11 =OO0OO0OOO0O0OO0OO ,user_image12 =OO00OO0OO0O0O0OO0 ,nid2 =0 )#line:650
583
  elif OOOO0OOO0OO0OOO0O !=None or "{}":#line:651
584
  O0O0O00OO0OOOOO00 =1 #line:652
585
  OOO000OOO00OO000O =await cargar_base_datos (OOOO0OOO0OO0OOO0O ,O0O0O00OO0OOOOO00 )#line:653
586
  O0OOO0OO00OO0OOO0 ,O00O00O0OOOOO00O0 ,O0O00O00OO00OO0O0 =await buscar_faq (OOOO0OOO0OO0OOO0O ,1 )#line:654
587
  if OOO000OOO00OO000O ==None :#line:655
588
  if len (O0OOO0OO00OO0OOO0 )==0 :#line:656
589
+ return render_template ('buscador_trauma.html',abrir=abrir, preguntas_respuestas =O0OOO0O0O00OOO0O0 ,result_busqueda =OO0O000O00O00O0OO ,prediction_text ="No hay resultados para tu busqueda",user_image4 =O00O000OO0O000OO0 ,user_image5 =OOO000OO0OO0OO000 ,user_image6 =OOO0000OOO000OOO0 ,user_image7 =O0OOOOOO0OO0OO00O ,user_image8 =OOOO00O0O0OOO0OO0 ,user_image9 =O0O00OOOO00O0000O ,user_image10 =OO000OO0OOO00OO00 ,user_image11 =OO0OO0OOO0O0OO0OO ,user_image12 =OO00OO0OO0O0O0OO0 ,nid2 =0 )#line:657
590
  else :#line:658
591
+ return render_template ('buscador_trauma.html',abrir=abrir, preguntas_respuestas =O0OOO0O0O00OOO0O0 ,faqs =O0OOO0OO00OO0OOO0 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OO0O000O00O00O0OO ,user_image4 =O00O000OO0O000OO0 ,user_image5 =OOO000OO0OO0OO000 ,user_image6 =OOO0000OOO000OOO0 ,user_image7 =O0OOOOOO0OO0OO00O ,user_image8 =OOOO00O0O0OOO0OO0 ,user_image9 =O0O00OOOO00O0000O ,user_image10 =OO000OO0OOO00OO00 ,user_image11 =OO0OO0OOO0O0OO0OO ,user_image12 =OO00OO0OO0O0O0OO0 ,nid2 =0 )#line:659
592
  elif len (OOO000OOO00OO000O )>=1 :#line:660
593
  OO00OOO0OOO0O0000 =[]#line:661
594
  O00OO0OOOOOO0OOO0 =[]#line:662
 
599
  for O0O0OOO0OOO0O00OO ,OO0O0OO000OOOOOO0 in enumerate (OO00OOO0OOO0O0000 ):#line:667
600
  OO0O000O00O00O0OO [O00OO0OOOOOO0OOO0 [O0O0OOO0OOO0O00OO ]]=OO0O0OO000OOOOOO0 #line:668
601
  if len (O0OOO0OO00OO0OOO0 )!=0 :#line:670
602
+ return render_template ('buscador_trauma1.html',abrir=abrir, faqs =O0OOO0OO00OO0OOO0 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OO0O000O00O00O0OO ,user_image4 =O00O000OO0O000OO0 ,user_image5 =OOO000OO0OO0OO000 ,user_image6 =OOO0000OOO000OOO0 ,user_image7 =O0OOOOOO0OO0OO00O ,user_image8 =OOOO00O0O0OOO0OO0 ,user_image9 =O0O00OOOO00O0000O ,user_image10 =OO000OO0OOO00OO00 ,user_image11 =OO0OO0OOO0O0OO0OO ,user_image12 =OO00OO0OO0O0O0OO0 ,nid2 =0 )#line:671
603
  else :#line:672
604
  if len(OO0O000O00O00O0OO)==1:
605
  return redirect(url_for('resultado_trauma',link=O00OO0OOOOOO0OOO0))
606
  else:
607
+ return render_template ('buscador_trauma1.html',abrir=abrir, result_busqueda =OO0O000O00O00O0OO ,user_image4 =O00O000OO0O000OO0 ,user_image5 =OOO000OO0OO0OO000 ,user_image6 =OOO0000OOO000OOO0 ,user_image7 =O0OOOOOO0OO0OO00O ,user_image8 =OOOO00O0O0OOO0OO0 ,user_image9 =O0O00OOOO00O0000O ,user_image10 =OO000OO0OOO00OO00 ,user_image11 =OO0OO0OOO0O0OO0OO ,user_image12 =OO00OO0OO0O0O0OO0 ,nid2 =0 )#line:673
608
  @app .route ("/resultado_trauma",methods =['GET','POST'])#line:675
609
  async def resultado_trauma ():#line:676
610
  OO00OOO00OO00O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:677
 
614
  O000OOO0O00OO0O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:681
615
  OO0O00OOO000O0000 =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:682
616
  OOOO00000O00O000O =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:683
617
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
618
  OOOO00O0OO00OOOOO =request .args .get ('link')#line:684
619
  OOOOOOOO0O00000OO ,O0OO0O0000000O00O =await cargar_tipo (OOOO00O0OO00OOOOO ,1 )#line:685
620
  OOO0OOOO00OO00O0O =OOOOOOOO0O00000OO ['title']#line:686
621
  if O0OO0O0000000O00O =="Intervencion":#line:688
622
  O0O0OO0OO000OOO00 ,O00O0O0OOOO00OOO0 =await cargar_caja (str (OOOO00O0OO00OOOOO ),'Instrumental - Cajas: ')#line:689
623
+ return render_template ('intervencion_trauma.html',abrir=abrir, user_image8 =O000OOO0O00OO0O00 ,user_image9 =OO0O00OOO000O0000 ,user_image10 =OO000000O00OO0000 ,user_image11 =OOOO00000O00O000O ,user_image12 =OO0OOO0000OOO0000 ,instrumental =O0O0OO0OO000OOO00 ,texto_cajas =O00O0O0OOOO00OOO0 ,title =OOO0OOOO00OO00O0O ,user_image6 =OO00OOO00OO00O000 ,user_image7 =OOO00O000OOOO0000 ,nid2 =OOOO00O0OO00OOOOO )#line:690
624
  elif O0OO0O0000000O00O =='Caja':#line:691
625
  OOOO000O0000O00O0 ,O0OOO00O00000OO0O ,O0OOOO0O0O0000O00 =await cargar_archivo ("ubicacion","Ubicacion: ","cajas/"+str (OOOO00O0OO00OOOOO ))#line:692
626
  OO0OO0OOOOOOOOO00 =await cargar_archivo ("image","Imagen: ","cajas/"+str (OOOO00O0OO00OOOOO ))#line:693
627
  O00000O0O000O0O00 ,OOOO0O00O000OOOOO =await cargar_archivo_grande ("title_material","Instrumental : ","cajas/"+str (OOOO00O0OO00OOOOO ))#line:694
628
+ return render_template ('caja_trauma.html',abrir=abrir, title =OOO0OOOO00OO00O0O ,files_instru =O00000O0O000O0O00 ,texto_instru =OOOO0O00O000OOOOO ,texto_ubi =OOOO000O0000O00O0 ,file_texto_ubi =O0OOOO0O0O0000O00 ,file_imagen =OO0OO0OOOOOOOOO00 ,user_image6 =OO00OOO00OO00O000 ,user_image7 =OOO00O000OOOO0000 )#line:698
629
  elif O0OO0O0000000O00O =='Instrumental':#line:699
630
  OO00O0OOOOO0OO00O =await cargar_instrumental (OOOO00O0OO00OOOOO ,'listado_completo_cajas/1')#line:700
631
+ return render_template ('instrumental_trauma.html',abrir=abrir, cajas =OO00O0OOOOO0OO00O ,texto ='El instrumental que buscas esta presente en las siguientes cajas: ',title =OOO0OOOO00OO00O0O ,user_image6 =OO00OOO00OO00O000 ,user_image7 =OOO00O000OOOO0000 )#line:704
632
  @app .route ("/protocolos_trauma",methods =['GET','POST'])#line:706
633
  async def protocolos_trauma ():#line:707
634
  OO0000000O0OO0O0O =request .args .get ('link2')#line:708
635
  O0OOO000OO00O0O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:709
636
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
637
  OO00O0000OO0O0000 =await boton_word_ppt (1 ,"field_protocolo",OO0000000O0OO0O0O )#line:710
638
  if len (OO00O0000OO0O0000 )==1 :#line:711
639
+ return render_template ('protocolo1.html',abrir=abrir, protocolos =OO00O0000OO0O0000 ,user_image7 =O0OOO000OO00O0O00 )#line:712
640
  else :#line:713
641
+ return render_template ('protocolo.html',abrir=abrir, protocolos =OO00O0000OO0O0000 ,user_image7 =O0OOO000OO00O0O00 )#line:714
642
  @app .route ("/guia_visual_trauma",methods =['GET','POST'])#line:716
643
  async def guia_visual_trauma ():#line:717
644
  OO0O0OO000OO000OO =request .args .get ('link2')#line:718
 
653
  async def pdf_casa_trauma ():#line:727
654
  O000OOO0OOO000000 =request .args .get ('link2')#line:728
655
  O0000000OO0000O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:729
656
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
657
  OO000OO00O0000000 =await boton_pdf_video (1 ,"field_pdf",O000OOO0OOO000000 )#line:730
658
  O0O00O0O0OOOO0OOO =0 #line:731
659
  for OO0O00OO0O0OO00O0 ,OO0O0OOOO0OO0OO0O in OO000OO00O0000000 .items ():#line:732
 
662
  if len (OO000OO00O0000000 .items ())==1 :#line:735
663
  if O0O00O0O0OOOO0OOO ==1 :#line:736
664
  print ("bien")#line:737
665
+ return render_template ('pdf_casa_comercial1.html',abrir=abrir, user_image7 =O0000000OO0000O00 ,titulos =OO000OO00O0000000 )#line:738
666
  else :#line:739
667
+ return render_template ('pdf_casa_comercial.html',abrir=abrir, user_image7 =O0000000OO0000O00 ,titulos =OO000OO00O0000000 )#line:740
668
  else :#line:741
669
+ return render_template ('pdf_casa_comercial.html',abrir=abrir, user_image7 =O0000000OO0000O00 ,titulos =OO000OO00O0000000 )#line:742
670
  @app .route ("/videos_trauma",methods =['GET','POST'])#line:744
671
  async def videos_trauma ():#line:745
672
  O0O000O0OOO00OOO0 =request .args .get ('link2')#line:746
673
  OO0OOO00O0O00000O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:747
674
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
675
  OOO000O000OO000O0 =await boton_pdf_video (1 ,"field_video",O0O000O0OOO00OOO0 )#line:748
676
  OOO00OO0OO000O0OO =0 #line:749
677
  for OOO00O0OOOOO0OO0O ,O000O0000O0000O00 in OOO000O000OO000O0 .items ():#line:750
 
680
  if len (OOO000O000OO000O0 .items ())==1 :#line:753
681
  if OOO00OO0OO000O0OO ==1 :#line:754
682
  print ("bien")#line:755
683
+ return render_template ('videos1.html',abrir=abrir, user_image7 =OO0OOO00O0O00000O ,titulos =OOO000O000OO000O0 )#line:756
684
  else :#line:757
685
+ return render_template ('videos.html',abrir=abrir, user_image7 =OO0OOO00O0O00000O ,titulos =OOO000O000OO000O0 )#line:758
686
  else :#line:759
687
+ return render_template ('videos.html',abrir=abrir, user_image7 =OO0OOO00O0O00000O ,titulos =OOO000O000OO000O0 )#line:760
688
  @app .route ("/materiales_trauma",methods =['GET','POST'])#line:762
689
  async def materiales_trauma ():#line:763
690
  O0O0O00000OOOOOOO =request .args .get ('link2')#line:764
691
  O000O0O000O0000O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:765
692
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
693
  O0O0O000OO0OO00O0 =await boton_materiales (1 ,O0O0O00000OOOOOOO )#line:766
694
  if len (O0O0O000OO0OO00O0)==0 :#line:767
695
+ return render_template ('materiales.html',abrir=abrir, user_image7 =O000O0O000O0000O0 ,cajas =O0O0O000OO0OO00O0 ,no_hay ="No hay instrumental")#line:768
696
  else :#line:769
697
  if len (O0O0O000OO0OO00O0 )==1 :#line:770
698
+ return render_template ('materiales.html',abrir=abrir, user_image7 =O000O0O000O0000O0 ,cajas =O0O0O000OO0OO00O0 )#line:771
699
  else :#line:772
700
+ return render_template ('materiales.html',abrir=abrir, user_image7 =O000O0O000O0000O0 ,cajas =O0O0O000OO0OO00O0 )#line:773
701
  @app .route ("/escuchar_trauma1",methods =['GET','POST'])#line:775
702
  async def escuchar_trauma1 ():#line:776
703
  OOO0OOO00O000OO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:777
 
728
  OO00O0O0O00OOO0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:808
729
  O0OO000OOOOOO0O0O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:809
730
  O000O0O00000O0OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:810
731
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
732
  O0O0OO0OO0O0OO0OO =sr .Recognizer ()#line:814
733
  O000OOOO000OOOO00 =""#line:816
734
  if request .method =="POST":#line:818
 
755
  OOO0000OOOOO00000 ,OO0OOO00OOO0OOO00 ,OO00O00OO0OO00O00 =await buscar_faq (OOO00OOOOOO00O00O ,0 )#line:848
756
  if OO0OO0O0O0000O0O0 ==None :#line:849
757
  if len (OOO0000OOOOO00000 )==0 :#line:850
758
+ return render_template ('escuchar_trauma.html',abrir=abrir, nid2 =0 ,result_busqueda =OOOO0OOOOO0OOOO00 ,prediction_text ="No hay resultados para tu busqueda",user_image6 =O0OO000OOOOOO0O0O ,user_image7 =O000O0O00000O0OO0 ,user_image5 =OO00O0O0O00OOO0O0 ,user_image8 =O0OOOO0000O00O000 ,user_image9 =OOO000OOOO0000OO0 ,user_image10 =OO0O0OOO0OOOO0OOO ,user_image11 =OOO000000000000OO ,user_image12 =OO00OO0O0OO0OO000 )#line:851
759
  else :#line:853
760
+ return render_template ('escuchar_trauma.html',abrir=abrir, nid2 =0 ,faqs =OOO0000OOOOO00000 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OOOO0OOOOO0OOOO00 ,user_image6 =O0OO000OOOOOO0O0O ,user_image7 =O000O0O00000O0OO0 ,user_image5 =OO00O0O0O00OOO0O0 ,user_image8 =O0OOOO0000O00O000 ,user_image9 =OOO000OOOO0000OO0 ,user_image10 =OO0O0OOO0OOOO0OOO ,user_image11 =OOO000000000000OO ,user_image12 =OO00OO0O0OO0OO000 )#line:854
761
  elif len (OO0OO0O0O0000O0O0 )>=1 :#line:856
762
  OO00O0O000O000000 =[]#line:857
763
  OOOO0OO0O00OO0000 =[]#line:858
 
771
  print (OOOO0OOOOO0OOOO00 )#line:866
772
  if len (OOO0000OOOOO00000 )==0 :#line:867
773
  print ("render1")#line:868
774
+ return render_template ('escuchar_trauma.html',abrir=abrir, nid2 =0 ,result_busqueda =OOOO0OOOOO0OOOO00 ,user_image6 =O0OO000OOOOOO0O0O ,user_image7 =O000O0O00000O0OO0 ,user_image5 =OO00O0O0O00OOO0O0 ,user_image8 =O0OOOO0000O00O000 ,user_image9 =OOO000OOOO0000OO0 ,user_image10 =OO0O0OOO0OOOO0OOO ,user_image11 =OOO000000000000OO ,user_image12 =OO00OO0O0OO0OO000 )#line:869
775
  else :#line:871
776
  print ("render2")#line:872
777
+ return render_template ('buscador_trauma.html',abrir=abrir, faqs =OOO0000OOOOO00000 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OOOO0OOOOO0OOOO00 ,user_image4 =OOOO00OOO0OOO000O ,user_image5 =OO00O0O0O00OOO0O0 ,user_image6 =O0OO000OOOOOO0O0O ,user_image7 =O000O0O00000O0OO0 ,user_image8 =O0OOOO0000O00O000 ,user_image9 =OOO000OOOO0000OO0 ,user_image10 =OO0O0OOO0OOOO0OOO ,user_image11 =OOO000000000000OO ,user_image12 =OO00OO0O0OO0OO000 ,nid2 =0 )#line:873
778
  else :#line:875
779
+ return render_template ('escuchar_trauma.html',nid2 =0 ,abrir=abrir, result_busqueda =OOOO0OOOOO0OOOO00 ,prediction_text ="No te he entendido bien, dale al boton `Escuchar´ y repite tu pregunta",user_image5 =OO00O0O0O00OOO0O0 ,user_image6 =O0OO000OOOOOO0O0O ,user_image7 =O000O0O00000O0OO0 ,user_image8 =O0OOOO0000O00O000 ,user_image9 =OOO000OOOO0000OO0 ,user_image10 =OO0O0OOO0OOOO0OOO ,user_image11 =OOO000000000000OO ,user_image12 =OO00OO0O0OO0OO000 )#line:876
780
  @app .route ("/buscador_admision",methods =['GET','POST'])#line:878
781
  async def buscador_admision ():#line:879
782
  O0OO00OOO000OOOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:880
 
827
  async def mapa_camas ():#line:925
828
  OO0000O0O00O0000O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:926
829
  O0OO0OOOO00OO0OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:927
830
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
831
  OO00O0O0OO0O00OO0 ,O0O0O0O00OOO0O00O ,O00O00OOO000O0OOO ,OOO00OOOO00O000O0 =await cargar_botones_pdf_admision ()#line:928
832
+ return render_template ('mapa_camas.html',abrir=abrir, text =OO00O0O0OO0O00OO0 ,user_image6 =OO0000O0O00O0000O ,user_image7 =O0OO0OOOO00OO0OOO )#line:929
833
  @app .route ("/ambulancias",methods =['GET','POST'])#line:931
834
  async def ambulancias ():#line:932
835
  O0O0OOOO0O0O00OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:933
 
841
  async def programacion_quirurgica ():#line:939
842
  O0OOO0OO0OOO0OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:940
843
  OO00000OOO0O0OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:941
844
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
845
  O0000O0O000O0O000 ,O0000OOO000O0O0O0 ,O0OOO0OOO00OO00O0 ,OOOO0O00000O0O00O =await cargar_botones_pdf_admision ()#line:942
846
+ return render_template ('programacion_quirurgica.html',abrir=abrir, text =O0OOO0OOO00OO00O0 ,user_image6 =O0OOO0OO0OOO0OO0O ,user_image7 =OO00000OOO0O0OO0O )#line:943
847
  @app .route ("/otros",methods =['GET','POST'])#line:945
848
  async def otros ():#line:946
849
  O000O0O0O00000000 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:947
850
  O0000OO00O0O0O0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:948
851
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
852
  OO0O0OO0O0O0OOO00 ,O0O0OOOOO00O00OOO ,OOOOOO00OOO0OOO0O ,OOO0OO00OOOO0OO0O =await cargar_botones_pdf_admision ()#line:949
853
+ return render_template ('otros.html',abrir=abrir, text =OOO0OO00OOOO0OO0O ,user_image6 =O000O0O0O00000000 ,user_image7 =O0000OO00O0O0O0O0 )#line:950
854
  @app .route ("/escuchar_admision1",methods =['GET','POST'])#line:952
855
  async def escuchar_admision1 ():#line:953
856
  O00O0OOO00OO0O0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'otros_img.png')#line:954
 
880
  O00OOOOOOO0O0OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:984
881
  OO0OOOO0OO000OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:985
882
  OO0O000OO0O0OOO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:986
883
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
884
  O0OO0OOOO0O0O0O0O =sr .Recognizer ()#line:988
885
  O0O0O0000OO0O000O =""#line:990
886
  if request .method =="POST":#line:992
 
906
  OO0OOO00OO00O00O0 ,OOO0OOOOO0OO0O000 ,O0O00OO0O0OO00O00 =await buscar_faq (O0OO00O0OO0OOO0O0 ,1 )#line:1021
907
  if OO0O0O0OOO000OOOO ==None :#line:1022
908
  if len (O0O00OO0O0OO00O00 )==0 :#line:1023
909
+ return render_template ('escuchar_admision.html',abrir=abrir, user_image8 =OO0OO00OO00OO0000 ,user_image9 =O00O000OO00OO0O00 ,user_image10 =OO00O00O00O0OO00O ,user_image11 =O0O00O0O00O0OOOO0 ,result_busqueda =OO0O0O00O00OOOOO0 ,prediction_text ="No hay resultados para tu busqueda",user_image4 =OOO0O000O000000OO ,user_image5 =O00OOOOOOO0O0OO0O ,user_image6 =OO0OOOO0OO000OO0O ,user_image7 =OO0O000OO0O0OOO00 )#line:1024
910
  else :#line:1025
911
+ return render_template ('escuchar_admision.html',abrir=abrir, faqs =O0O00OO0O0OO00O00 ,faq_titulo ="Preguntas y respuestas: ",user_image8 =OO0OO00OO00OO0000 ,user_image9 =O00O000OO00OO0O00 ,user_image10 =OO00O00O00O0OO00O ,user_image11 =O0O00O0O00O0OOOO0 ,result_busqueda =OO0O0O00O00OOOOO0 ,user_image4 =OOO0O000O000000OO ,user_image5 =O00OOOOOOO0O0OO0O ,user_image6 =OO0OOOO0OO000OO0O ,user_image7 =OO0O000OO0O0OOO00 )#line:1026
912
  elif len (OO0O0O0OOO000OOOO )>=1 :#line:1027
913
  O0O0O0OOOO0OO00O0 =[]#line:1028
914
  OOO00OOO0O0000000 =[]#line:1029
 
925
  O0OOO000OOO0OOOO0 =O0OOO000OOO0OOOO0 [0 ]#line:1040
926
  OO0O0O00O00OOOOO0 [O0O00OO000OO0OOOO ['title']]="https://orva.tedcas.com/"+str (O0OOO000OOO0OOOO0 ['url'])#line:1041
927
  if len (O0O00OO0O0OO00O00 )==0 :#line:1042
928
+ return render_template ('escuchar_admision.html',abrir=abrir, user_image8 =OO0OO00OO00OO0000 ,user_image9 =O00O000OO00OO0O00 ,user_image10 =OO00O00O00O0OO00O ,user_image11 =O0O00O0O00O0OOOO0 ,result_busqueda =OO0O0O00O00OOOOO0 ,user_image4 =OOO0O000O000000OO ,user_image5 =O00OOOOOOO0O0OO0O ,user_image6 =OO0OOOO0OO000OO0O ,user_image7 =OO0O000OO0O0OOO00 )#line:1043
929
  else :#line:1044
930
  print ("render2")#line:1045
931
+ return render_template ('buscador_admision.html',abrir=abrir, faqs =O0O00OO0O0OO00O00 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OO0O0O00O00OOOOO0 ,user_image4 =OOO0O000O000000OO ,user_image5 =O00OOOOOOO0O0OO0O ,user_image6 =OO0OOOO0OO000OO0O ,user_image7 =OO0O000OO0O0OOO00 ,user_image8 =O0O0OOOO0O00O00O0 ,user_image9 =OOOO0O0O000OOOO0O ,user_image10 =OO0O0OO00O000O00O ,user_image11 =OO0O000O000O0OOO0 ,user_image12 =O0OO0O00000OO00OO ,nid2 =0 )#line:1046
932
  else :#line:1048
933
+ return render_template ('escuchar_admision.html',abrir=abrir, user_image8 =OO0OO00OO00OO0000 ,user_image9 =O00O000OO00OO0O00 ,user_image10 =OO00O00O00O0OO00O ,user_image11 =O0O00O0O00O0OOOO0 ,prediction_text ="No te he entendido bien, dale al boton `Escuchar´ y repite tu pregunta",result_busqueda =OO0O0O00O00OOOOO0 ,user_image4 =OOO0O000O000000OO ,user_image5 =O00OOOOOOO0O0OO0O ,user_image6 =OO0OOOO0OO000OO0O ,user_image7 =OO0O000OO0O0OOO00 )#line:1049
934
  @app .route ("/buscador_uro",methods =['GET','POST'])#line:1051
935
  async def buscador_uro ():#line:1052
936
  O00O0OO00OOOOOOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:1053
 
943
  O0O00O00O000000O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:1060
944
  O00O0OOOO0O00O0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'preguntas_respuestas.png')#line:1061
945
  OO0OO0O0O0OO0OOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:1062
946
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
947
  O0O0000OO0OO0O000 =str (request .form .to_dict ())#line:1063
948
  O0O0000OO0OO0O000 =adaptar_salida (O0O0000OO0OO0O000 )#line:1064
949
  O0OOOO0000000O0O0 ={}#line:1065
950
  O0OOOO0000000O0O0 [""]=""#line:1066
951
  if len (O0O0000OO0OO0O000 )==0 :#line:1067
952
+ return render_template ('buscador_uro.html',abrir=abrir, preguntas_respuestas =O00O0OOOO0O00O0O0 ,result_busqueda =O0OOOO0000000O0O0 ,user_image4 =O00O0OO00OOOOOOOO ,user_image5 =O00O00O00O00OOO0O ,user_image6 =OO0O00O00OOOO0O0O ,user_image7 =O0OO0OO0O0O00O0OO ,user_image8 =O00O00O0000OO0000 ,user_image9 =O0O00O00O000000O0 ,user_image10 =OO0O000OO00OOOOOO ,user_image11 =OO0OO0O0O0OO0OOOO ,user_image12 =O00O00OOOO000OOO0 ,nid2 =0 )#line:1068
953
  elif O0O0000OO0OO0O000 !=None or "{}":#line:1069
954
  OO0000000OO0O00OO =1620 #line:1070
955
  O00000000O00OO0O0 =await cargar_base_datos (O0O0000OO0OO0O000 ,OO0000000OO0O00OO )#line:1071
956
  O0OO00OOOO00O0OOO ,OOO00OOOOOO0O0OOO ,O0O0O0OOO0000OOO0 =await buscar_faq (O0O0000OO0OO0O000 ,1 )#line:1072
957
  if O00000000O00OO0O0 ==None :#line:1073
958
  if len (OOO00OOOOOO0O0OOO )==0 :#line:1074
959
+ return render_template ('buscador_uro.html',abrir=abrir, preguntas_respuestas =O00O0OOOO0O00O0O0 ,result_busqueda =O0OOOO0000000O0O0 ,prediction_text ="No hay resultados para tu busqueda",user_image4 =O00O0OO00OOOOOOOO ,user_image5 =O00O00O00O00OOO0O ,user_image6 =OO0O00O00OOOO0O0O ,user_image7 =O0OO0OO0O0O00O0OO ,user_image8 =O00O00O0000OO0000 ,user_image9 =O0O00O00O000000O0 ,user_image10 =OO0O000OO00OOOOOO ,user_image11 =OO0OO0O0O0OO0OOOO ,user_image12 =O00O00OOOO000OOO0 ,nid2 =0 )#line:1075
960
  else :#line:1076
961
+ return render_template ('buscador_uro.html',abrir=abrir, preguntas_respuestas =O00O0OOOO0O00O0O0 ,faqs =OOO00OOOOOO0O0OOO ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOOO0000000O0O0 ,user_image4 =O00O0OO00OOOOOOOO ,user_image5 =O00O00O00O00OOO0O ,user_image6 =OO0O00O00OOOO0O0O ,user_image7 =O0OO0OO0O0O00O0OO ,user_image8 =O00O00O0000OO0000 ,user_image9 =O0O00O00O000000O0 ,user_image10 =OO0O000OO00OOOOOO ,user_image11 =OO0OO0O0O0OO0OOOO ,user_image12 =O00O00OOOO000OOO0 ,nid2 =0 )#line:1077
962
  elif len (O00000000O00OO0O0 )>=1 :#line:1078
963
  OOO00OOOOOO00O0OO =[]#line:1079
964
  OOO0OOOO00O0000OO =[]#line:1080
 
969
  for OOO000OO0O000O000 ,O0OO000O00OOOO00O in enumerate (OOO00OOOOOO00O0OO ):#line:1085
970
  O0OOOO0000000O0O0 [OOO0OOOO00O0000OO [OOO000OO0O000O000 ]]=O0OO000O00OOOO00O #line:1086
971
  if len (OOO00OOOOOO0O0OOO )!=0 :#line:1087
972
+ return render_template ('buscador_uro1.html',abrir=abrir, faqs =OOO00OOOOOO0O0OOO ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOOO0000000O0O0 ,user_image4 =O00O0OO00OOOOOOOO ,user_image5 =O00O00O00O00OOO0O ,user_image6 =OO0O00O00OOOO0O0O ,user_image7 =O0OO0OO0O0O00O0OO ,user_image8 =O00O00O0000OO0000 ,user_image9 =O0O00O00O000000O0 ,user_image10 =OO0O000OO00OOOOOO ,user_image11 =OO0OO0O0O0OO0OOOO ,user_image12 =O00O00OOOO000OOO0 ,nid2 =0 )#line:1088
973
  else :#line:1089
974
  if len(O0OOOO0000000O0O0)==1:
975
  return redirect(url_for('resultado_uro',link=OOO0OOOO00O0000OO))
976
  else:
977
+ return render_template ('buscador_uro1.html',abrir=abrir, result_busqueda =O0OOOO0000000O0O0 ,user_image4 =O00O0OO00OOOOOOOO ,user_image5 =O00O00O00O00OOO0O ,user_image6 =OO0O00O00OOOO0O0O ,user_image7 =O0OO0OO0O0O00O0OO ,user_image8 =O00O00O0000OO0000 ,user_image9 =O0O00O00O000000O0 ,user_image10 =OO0O000OO00OOOOOO ,user_image11 =OO0OO0O0O0OO0OOOO ,user_image12 =O00O00OOOO000OOO0 ,nid2 =0 )#line:1090
978
  @app .route ("/resultado_uro",methods =['GET','POST'])#line:1092
979
  async def resultado_uro ():#line:1093
980
  OO0O0OOO00OO00OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:1094
 
984
  OOOOO0O000OOO00O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:1098
985
  OO00O0OOOOOO0OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:1099
986
  OOO0OOO00000000OO =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:1100
987
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
988
  OOO00O00O0O0O00OO =request .args .get ('link')#line:1101
989
  OO000OOOOOO0OOO00 ,O0O000OO00O000OOO =await cargar_tipo (OOO00O00O0O0O00OO ,1620 )#line:1102
990
  O00OOO0OO00O00OOO =OO000OOOOOO0OOO00 ['title']#line:1103
991
  if O0O000OO00O000OOO =="Intervencion":#line:1104
992
  print ("hola1")#line:1105
993
  OO000O00000O00O0O ,O0OO000O0O00OO000 =await cargar_caja (str (OOO00O00O0O0O00OO ),'Instrumental - Cajas: ')#line:1106
994
+ return render_template ('intervencion_uro.html',abrir=abrir, user_image8 =OOOOO0O000OOO00O0 ,user_image9 =OO00O0OOOOOO0OO0O ,user_image10 =OOO0O0O00O0O0000O ,user_image11 =OOO0OOO00000000OO ,user_image12 =O0O0OO0OO0OO0O00O ,instrumental =OO000O00000O00O0O ,texto_cajas =O0OO000O0O00OO000 ,title =O00OOO0OO00O00OOO ,user_image6 =OO0O0OOO00OO00OOO ,user_image7 =OOOOOOOO0O0OO0O00 ,nid2 =OOO00O00O0O0O00OO )#line:1107
995
  elif O0O000OO00O000OOO =='Caja':#line:1108
996
  OO0OO00OO0O00OOOO ,O0OOO0OOOO0OOO0OO ,O0O00000O00O00000 =await cargar_archivo ("ubicacion","Ubicacion: ","cajas/"+str (OOO00O00O0O0O00OO ))#line:1109
997
  O000OO00OOO0O0O00 =await cargar_archivo ("image","Imagen: ","cajas/"+str (OOO00O00O0O0O00OO ))#line:1110
998
  OOO000O0O0OOO0OO0 ,OO0OOOOO0OO00000O =await cargar_archivo_grande ("title_material","Instrumental : ","cajas/"+str (OOO00O00O0O0O00OO ))#line:1111
999
+ return render_template ('caja_trauma.html',abrir=abrir, title =O00OOO0OO00O00OOO ,files_instru =OOO000O0O0OOO0OO0 ,texto_instru =OO0OOOOO0OO00000O ,texto_ubi =OO0OO00OO0O00OOOO ,file_texto_ubi =O0O00000O00O00000 ,file_imagen =O000OO00OOO0O0O00 ,user_image6 =OO0O0OOO00OO00OOO ,user_image7 =OOOOOOOO0O0OO0O00 )#line:1115
1000
  elif O0O000OO00O000OOO =='Instrumental':#line:1116
1001
  print ("hola2")#line:1117
1002
  OO00O00OOO0O000O0 =await cargar_instrumental (OOO00O00O0O0O00OO ,'listado_completo_cajas/1620')#line:1118
1003
+ return render_template ('instrumental_uro.html',abrir=abrir, cajas =OO00O00OOO0O000O0 ,texto ='El instrumental que buscas esta presente en las siguientes cajas: ',title =O00OOO0OO00O00OOO ,user_image6 =OO0O0OOO00OO00OOO ,user_image7 =OOOOOOOO0O0OO0O00 )#line:1122
1004
  @app .route ("/protocolos_uro",methods =['GET','POST'])#line:1124
1005
  async def protocolos_uro ():#line:1125
1006
  OOOO0OOO0OO0OOO00 =request .args .get ('link2')#line:1126
1007
  O0O00OOOO0OO0O00O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:1127
1008
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
1009
  OO0OO0O0O00O00O00 =await boton_word_ppt (1620 ,"field_protocolo",OOOO0OOO0OO0OOO00 )#line:1128
1010
  if len (OO0OO0O0O00O00O00 )==1 :#line:1129
1011
+ return render_template ('protocolo1.html',abrir=abrir, protocolos =OO0OO0O0O00O00O00 ,user_image7 =O0O00OOOO0OO0O00O )#line:1130
1012
  else :#line:1131
1013
+ return render_template ('protocolo.html',abrir=abrir, protocolos =OO0OO0O0O00O00O00 ,user_image7 =O0O00OOOO0OO0O00O )#line:1132
1014
  @app .route ("/guia_visual_uro",methods =['GET','POST'])#line:1134
1015
  async def guia_visual_uro ():#line:1135
1016
  OOO0OOOOOO00O0O0O =request .args .get ('link2')#line:1136
 
1025
  async def pdf_casa_uro ():#line:1145
1026
  OO0O000OOOO00OOO0 =request .args .get ('link2')#line:1146
1027
  O00OOOO0OO00OO000 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:1147
1028
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
1029
  OOO00O0000O00O000 =await boton_pdf_video (1620 ,"field_pdf",OO0O000OOOO00OOO0 )#line:1148
1030
  O00OOOO0O00O00O0O =0 #line:1149
1031
  for O0OO00OO0OO00O00O ,OOO000OO0OOO0OO0O in OOO00O0000O00O000 .items ():#line:1150
 
1034
  if len (OOO00O0000O00O000 .items ())==1 :#line:1153
1035
  if O00OOOO0O00O00O0O ==1 :#line:1154
1036
  print ("bien")#line:1155
1037
+ return render_template ('pdf_casa_comercial1.html',abrir=abrir, user_image7 =O00OOOO0OO00OO000 ,titulos =OOO00O0000O00O000 )#line:1156
1038
  else :#line:1157
1039
+ return render_template ('pdf_casa_comercial.html',abrir=abrir, user_image7 =O00OOOO0OO00OO000 ,titulos =OOO00O0000O00O000 )#line:1158
1040
  else :#line:1159
1041
+ return render_template ('pdf_casa_comercial.html',abrir=abrir, user_image7 =O00OOOO0OO00OO000 ,titulos =OOO00O0000O00O000 )#line:1160
1042
  @app .route ("/videos_uro",methods =['GET','POST'])#line:1162
1043
  async def videos_uro ():#line:1163
1044
  OO0000OO000O00000 =request .args .get ('link2')#line:1164
1045
  OOOOO00000O0OO0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:1165
1046
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
1047
  O0O0OO0000OO0OOO0 =await boton_pdf_video (1620 ,"field_video",OO0000OO000O00000 )#line:1166
1048
  OOOOOO0O0O0OO0O0O =0 #line:1167
1049
  for O00O00O0OOOOOOOO0 ,OOO0000O0000O0000 in O0O0OO0000OO0OOO0 .items ():#line:1168
 
1051
  OOOOOO0O0O0OO0O0O =OOOOOO0O0O0OO0O0O +1 #line:1170
1052
  if len (O0O0OO0000OO0OOO0 .items ())==1 :#line:1171
1053
  if OOOOOO0O0O0OO0O0O ==1 :#line:1172
1054
+ return render_template ('videos1.html',abrir=abrir, user_image7 =OOOOO00000O0OO0O0 ,titulos =O0O0OO0000OO0OOO0 )#line:1173
1055
  else :#line:1174
1056
+ return render_template ('videos.html',abrir=abrir, user_image7 =OOOOO00000O0OO0O0 ,titulos =O0O0OO0000OO0OOO0 )#line:1175
1057
  else :#line:1176
1058
+ return render_template ('videos.html',abrir=abrir, user_image7 =OOOOO00000O0OO0O0 ,titulos =O0O0OO0000OO0OOO0 )#line:1177
1059
  @app .route ("/materiales_uro",methods =['GET','POST'])#line:1179
1060
  async def materiales_uro ():#line:1180
1061
  O00OO0OO0OOO0OOO0 =request .args .get ('link2')#line:1181
1062
  OOO00O00O00OO00O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:1182
1063
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
1064
  O0O00O00O000O000O =await boton_materiales (1620 ,O00OO0OO0OOO0OOO0 )#line:1183
1065
  if len (O0O00O00O000O000O [''])==0 :#line:1184
1066
+ return render_template ('materiales_uro.html',abrir=abrir, user_image7 =OOO00O00O00OO00O0 ,cajas =O0O00O00O000O000O ,no_hay ="No hay instrumental")#line:1185
1067
  else :#line:1186
1068
  if len (O0O00O00O000O000O )==1 :#line:1187
1069
+ return render_template ('materiales_uro1.html',abrir=abrir, user_image7 =OOO00O00O00OO00O0 ,cajas =O0O00O00O000O000O )#line:1188
1070
  else :#line:1189
1071
+ return render_template ('materiales_uro.html',abrir=abrir, user_image7 =OOO00O00O00OO00O0 ,cajas =O0O00O00O000O000O )#line:1190
1072
  @app .route ("/escuchar_uro1",methods =['GET','POST'])#line:1192
1073
  async def escuchar_uro1 ():#line:1193
1074
  O0000O00O00O0000O =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:1194
 
1099
  OOO0O00O00OOOOOO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:1223
1100
  O00OO0OOO00OOO00O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:1224
1101
  O00OO00OOO0O00O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:1225
1102
+ abrir = os .path .join (app .config ['UPLOAD_FOLDER'],'abrir.png')
1103
  O00O0O000000OOO0O =sr .Recognizer ()#line:1227
1104
  OOOOO000000O00O00 =""#line:1229
1105
  if request .method =="POST":#line:1231
 
1124
  O0OOO000O00000000 ,OOOOO000O00OOOOO0 ,O0O00OO00OO000O00 =await buscar_faq (O000OO00OOO0O0OO0 ,0 )#line:1258
1125
  if O0OO0OO0000OO0OOO ==None :#line:1259
1126
  if len (OOOOO000O00OOOOO0 )==0 :#line:1260
1127
+ return render_template ('escuchar_uro.html',abrir=abrir, nid2 =0 ,result_busqueda =O0OOOO00O000O0OO0 ,prediction_text ="No hay resultados para tu busqueda",user_image6 =O00OO0OOO00OOO00O ,user_image7 =O00OO00OOO0O00O00 ,user_image5 =OOO0O00O00OOOOOO0 ,user_image8 =O0000000O0O000O00 ,user_image9 =O000OO0O00OO0000O ,user_image10 =O00000O0O00OOO0O0 ,user_image11 =OOOOO00OO0O00OO0O ,user_image12 =OO00O0O00000OOO0O )#line:1261
1128
  else :#line:1262
1129
+ return render_template ('escuchar_uro.html',abrir=abrir, nid2 =0 ,faqs =OOOOO000O00OOOOO0 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOOO00O000O0OO0 ,user_image6 =O00OO0OOO00OOO00O ,user_image7 =O00OO00OOO0O00O00 ,user_image5 =OOO0O00O00OOOOOO0 ,user_image8 =O0000000O0O000O00 ,user_image9 =O000OO0O00OO0000O ,user_image10 =O00000O0O00OOO0O0 ,user_image11 =OOOOO00OO0O00OO0O ,user_image12 =OO00O0O00000OOO0O )#line:1263
1130
  elif len (O0OO0OO0000OO0OOO )>=1 :#line:1264
1131
  O0O00OO0OO00O0OOO =[]#line:1265
1132
  O0000OOOO00O0OOO0 =[]#line:1266
 
1137
  for O0OO00000000O00OO ,OO0000OOO000OOOO0 in enumerate (O0O00OO0OO00O0OOO ):#line:1271
1138
  O0OOOO00O000O0OO0 [O0000OOOO00O0OOO0 [O0OO00000000O00OO ]]=OO0000OOO000OOOO0 #line:1272
1139
  if len (OOOOO000O00OOOOO0 )==0 :#line:1274
1140
+ return render_template ('escuchar_uro.html',abrir=abrir, nid2 =0 ,result_busqueda =O0OOOO00O000O0OO0 ,user_image6 =O00OO0OOO00OOO00O ,user_image7 =O00OO00OOO0O00O00 ,user_image5 =OOO0O00O00OOOOOO0 ,user_image8 =O0000000O0O000O00 ,user_image9 =O000OO0O00OO0000O ,user_image10 =O00000O0O00OOO0O0 ,user_image11 =OOOOO00OO0O00OO0O ,user_image12 =OO00O0O00000OOO0O )#line:1275
1141
  else :#line:1276
1142
+ return render_template ('buscador_uro.html',abrir=abrir, faqs =OOOOO000O00OOOOO0 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOOO00O000O0OO0 ,user_image4 =O00000OOOO0O00O0O ,user_image5 =OOO0O00O00OOOOOO0 ,user_image6 =O00OO0OOO00OOO00O ,user_image7 =O00OO00OOO0O00O00 ,user_image8 =O0000000O0O000O00 ,user_image9 =O000OO0O00OO0000O ,user_image10 =O00000O0O00OOO0O0 ,user_image11 =OOOOO00OO0O00OO0O ,user_image12 =OO00O0O00000OOO0O ,nid2 =0 )#line:1278
1143
  else :#line:1280
1144
+ return render_template ('escuchar_uro.html',nid2 =0 ,abrir=abrir, result_busqueda =O0OOOO00O000O0OO0 ,prediction_text ="No te he entendido bien, dale al boton `Escuchar´ y repite tu pregunta",user_image5 =OOO0O00O00OOOOOO0 ,user_image6 =O00OO0OOO00OOO00O ,user_image7 =O00OO00OOO0O00O00 ,user_image8 =O0000000O0O000O00 ,user_image9 =O000OO0O00OO0000O ,user_image10 =O00000O0O00OOO0O0 ,user_image11 =OOOOO00OO0O00OO0O ,user_image12 =OO00O0O00000OOO0O )#line:1281
1145
  @app .route ("/ajustes")#line:1283
1146
  async def ajustes ():#line:1284
1147
  OO00OOOOOO0OO00O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'estrella.png')#line:1285