Browse Source

Update registro-run.py

Jose R Ortiz Ubarri 4 years ago
parent
commit
04d4b2c88b
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      registro-run.py

+ 6
- 2
registro-run.py View File

56
     if not tipo in ["enfermera", "admin", "estudiante", "madre", "facultad", "curso"]:
56
     if not tipo in ["enfermera", "admin", "estudiante", "madre", "facultad", "curso"]:
57
         return render_template('login.html') # Mejor error
57
         return render_template('login.html') # Mejor error
58
 
58
 
59
+    print("here")
60
+    if tipo == "curso":
61
+        return render_template("formacurso.html")
62
+
63
+    return render_template("listuser.html", tipo=tipo, admin=1)
64
+
59
 
65
 
60
 @app.route('/be/<user>/<action>/<tipo>', methods=['GET', 'POST'])
66
 @app.route('/be/<user>/<action>/<tipo>', methods=['GET', 'POST'])
61
 def database(user, action, tipo):
67
 def database(user, action, tipo):
67
         return render_template('login.html') # Mejor error
73
         return render_template('login.html') # Mejor error
68
 
74
 
69
 
75
 
70
-    return render_template("formacurso.html")
71
-
72
 # @app.route('/view/list/<tipo>/', methods=['GET', 'POST'])
76
 # @app.route('/view/list/<tipo>/', methods=['GET', 'POST'])
73
 # def viewlist(tipo):
77
 # def viewlist(tipo):
74
 #     if tipo == "curso":
78
 #     if tipo == "curso":