I am a cybertruck

This commit is contained in:
rain
2023-05-24 17:41:28 -05:00
parent 262e125ede
commit d47cd39a85
2 changed files with 0 additions and 23 deletions
Binary file not shown.
-23
View File
@@ -1,18 +1,6 @@
"""
Flask Documentation: http://flask.pocoo.org/docs/
Jinja2 Documentation: http://jinja.pocoo.org/2/documentation/
Werkzeug Documentation: http://werkzeug.pocoo.org/documentation/
This file creates your application.
"""
from app import app, db from app import app, db
from flask import render_template, request, redirect, url_for, flash from flask import render_template, request, redirect, url_for, flash
from app.models import target from app.models import target
# import sqlite3
###
# Routing for your application.
###
@app.route('/') @app.route('/')
def home(): def home():
@@ -20,17 +8,6 @@ def home():
targets = db.session.query(target).all() targets = db.session.query(target).all()
return render_template('home.html', targets=targets) return render_template('home.html', targets=targets)
###
# The functions below should be applicable to all Flask apps.
###
@app.route('/<file_name>.txt')
def send_text_file(file_name):
"""Send your static text file."""
file_dot_text = file_name + '.txt'
return app.send_static_file(file_dot_text)
@app.after_request @app.after_request
def add_header(response): def add_header(response):
""" """