|
@ -6,8 +6,7 @@ import json |
|
|
import os |
|
|
import os |
|
|
|
|
|
|
|
|
import bcrypt |
|
|
import bcrypt |
|
|
import flask |
|
|
from flask import redirect, render_template, request, Blueprint |
|
|
from flask import redirect, render_template, request |
|
|
|
|
|
from flask_wtf.csrf import CSRFProtect |
|
|
from flask_wtf.csrf import CSRFProtect |
|
|
from icalendar import Calendar |
|
|
from icalendar import Calendar |
|
|
from PIL import Image |
|
|
from PIL import Image |
|
@ -23,6 +22,8 @@ from search import search |
|
|
APP = create_app() |
|
|
APP = create_app() |
|
|
csrf = CSRFProtect() |
|
|
csrf = CSRFProtect() |
|
|
csrf.init_app(APP) |
|
|
csrf.init_app(APP) |
|
|
|
|
|
files = Blueprint("files", __name__, static_folder="files") |
|
|
|
|
|
APP.register_blueprint(files) |
|
|
csvparser = CsvParser( |
|
|
csvparser = CsvParser( |
|
|
APP.config["LIBRARY_FILENAME"], APP.config["IMAGE_FOLDER"] |
|
|
APP.config["LIBRARY_FILENAME"], APP.config["IMAGE_FOLDER"] |
|
|
) |
|
|
) |
|
|