Compare commits
No commits in common. "de6910b4bfea35826557648c5639bfcddee3083e" and "500beed4cc2562a0e045a7ffe5330e0346b8fe8a" have entirely different histories.
de6910b4bf
...
500beed4cc
@ -1,7 +1,9 @@
|
||||
from .config import Development as Config
|
||||
from .install import install_app
|
||||
from .models import User
|
||||
from .models import Entry, Dataset, Test, User
|
||||
from .extensions import bootstrap, csrf, db, login_manager, mail
|
||||
from .tools.data import save
|
||||
from .tools.logs import write
|
||||
|
||||
from flask import flash, Flask, render_template, request
|
||||
from flask.helpers import url_for
|
||||
@ -9,6 +11,7 @@ from flask.json import jsonify
|
||||
from flask_wtf.csrf import CSRFError
|
||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
|
||||
from cryptography.fernet import Fernet
|
||||
from datetime import datetime
|
||||
|
||||
def create_app():
|
||||
|
@ -24,7 +24,6 @@ def install_app(app):
|
||||
if not database_exists(database_uri):
|
||||
create_database(database_uri)
|
||||
write('system.log', 'No database found. Creating a new database.')
|
||||
from .models import Entry, Dataset, Test, User
|
||||
db.create_all()
|
||||
write('system.log', 'Creating database schema.')
|
||||
if not path.isfile(f'./{data}/.encryption.key'):
|
||||
|
Loading…
Reference in New Issue
Block a user