Remove deprecated routes file and move HTML prettifying logic to hooks module
This commit is contained in:
parent
4d8d5b4e6a
commit
f4369348c5
2 changed files with 2 additions and 10 deletions
|
@ -2,4 +2,4 @@ from flask import Blueprint
|
||||||
|
|
||||||
main = Blueprint('main', __name__)
|
main = Blueprint('main', __name__)
|
||||||
|
|
||||||
from . import inventory, user, worklog, settings, index, search
|
from . import inventory, user, worklog, settings, index, search, hooks
|
|
@ -1,15 +1,7 @@
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from flask import render_template, url_for, request, redirect
|
|
||||||
from flask import current_app as app
|
from flask import current_app as app
|
||||||
import pandas as pd
|
|
||||||
from sqlalchemy import or_
|
|
||||||
from sqlalchemy.orm import aliased
|
|
||||||
|
|
||||||
from . import db
|
from . import main
|
||||||
from .models import Inventory, User, WorkLog
|
|
||||||
from .routes import main
|
|
||||||
from .routes.helpers import worklog_headers, inventory_headers, user_headers
|
|
||||||
from .utils.load import eager_load_user_relationships, eager_load_inventory_relationships, eager_load_worklog_relationships
|
|
||||||
|
|
||||||
@main.after_request
|
@main.after_request
|
||||||
def prettify_html_response(response):
|
def prettify_html_response(response):
|
Loading…
Add table
Add a link
Reference in a new issue