Przeglądaj źródła

Update registro-run.py

Jose R Ortiz Ubarri 4 lat temu
rodzic
commit
d71167d3e4
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      registro-run.py

+ 1
- 1
registro-run.py Wyświetl plik

58
 
58
 
59
 
59
 
60
 @app.route('/be/<user>/<action>/<tipo>', methods=['GET', 'POST'])
60
 @app.route('/be/<user>/<action>/<tipo>', methods=['GET', 'POST'])
61
-def dispatcher(user, action, tipo):
61
+def database(user, action, tipo):
62
     if not user in ["admin", "estudiante", "enfermera", "encargado", "facultad"]:
62
     if not user in ["admin", "estudiante", "enfermera", "encargado", "facultad"]:
63
         return render_template('login.html') # Mejor error
63
         return render_template('login.html') # Mejor error
64
     if not action in ["list", "view", "edit", "add"]:
64
     if not action in ["list", "view", "edit", "add"]: