3 Commit

Autore SHA1 Messaggio Data
  Tatiana Castro 323134b77f cambie el nombre de la funcion de admin a admin_insert 6 anni fa
  Tatiana Castro c7bfde9db2 tiene admin_remove 6 anni fa
  Tatiana Castro a2649bfef6 tiene admin_remove 6 anni fa
2 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 4
    0
      app/__init__.py
  2. 1
    1
      app/admin_insert.py

+ 4
- 0
app/__init__.py Vedi File

@@ -29,3 +29,7 @@ app.add_url_rule('/', endpoint='index')
29 29
 from . import admin_insert
30 30
 app.register_blueprint(admin_insert.bp)
31 31
 app.add_url_rule('/admin_insert', endpoint='admin_insert')
32
+
33
+from . import admin_remove
34
+app.register_blueprint(admin_remove.bp)
35
+app.add_url_rule('/admin_remove', endpoint='admin_remove')

+ 1
- 1
app/admin_insert.py Vedi File

@@ -9,7 +9,7 @@ from app.forms import StationForm
9 9
 bp = Blueprint('admin_insert', __name__)
10 10
 
11 11
 @bp.route('/admin_insert', methods=('GET', 'POST'))
12
-def admin():
12
+def admin_insert():
13 13
     form = StationForm()
14 14
     if form.validate_on_submit():
15 15
         db = get_db()