LeireTedCas commited on
Commit
f4cba53
1 Parent(s): 0271465

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -599,7 +599,10 @@ async def buscador_trauma ():#line:634
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
- 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
 
 
 
603
  @app .route ("/resultado_trauma",methods =['GET','POST'])#line:675
604
  async def resultado_trauma ():#line:676
605
  OO00OOO00OO00O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:677
@@ -958,7 +961,10 @@ async def buscador_uro ():#line:1052
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
- 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
 
 
 
962
  @app .route ("/resultado_uro",methods =['GET','POST'])#line:1092
963
  async def resultado_uro ():#line:1093
964
  OO0O0OOO00OO00OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:1094
 
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
 
961
  if len (OOO00OOOOOO0O0OOO )!=0 :#line:1087
962
  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
963
  else :#line:1089
964
+ if len(O0OOOO0000000O0O0)==1:
965
+ return redirect(url_for('resultado_uro',link=OOO0OOOO00O0000OO))
966
+ else:
967
+ 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
968
  @app .route ("/resultado_uro",methods =['GET','POST'])#line:1092
969
  async def resultado_uro ():#line:1093
970
  OO0O0OOO00OO00OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:1094