fix config sanity check

add chartjs
This commit is contained in:
Aaron Kimbre 2022-03-13 19:39:16 -05:00
parent 5b949e02d1
commit 6606f1558e
3 changed files with 15 additions and 1 deletions

1
.gitattributes vendored
View File

@ -1,3 +1,4 @@
app/static/bootstrap-4.2.1/* linguist-vendored=true app/static/bootstrap-4.2.1/* linguist-vendored=true
app/static/datatables/* linguist-vendored=true app/static/datatables/* linguist-vendored=true
app/static/font-awesome/* linguist-vendored=true app/static/font-awesome/* linguist-vendored=true
app/static/chartjs/* linguist-vendored=true

View File

@ -193,7 +193,7 @@ def register_settings(app):
'APP_DATABASE_URI', 'APP_DATABASE_URI',
app.config['APP_DATABASE_URI'] app.config['APP_DATABASE_URI']
) )
if app.config['SECRET_KEY'] is None or app.config['APP_DATABASE_URI'] is None: if app.config['SECRET_KEY'] is "" or "<database>" in app.config['APP_DATABASE_URI']:
raise("No database uri or secret Key") raise("No database uri or secret Key")
# try to get overides, otherwise just use what we have already # try to get overides, otherwise just use what we have already
app.config['USER_ENABLE_REGISTER'] = os.getenv( app.config['USER_ENABLE_REGISTER'] = os.getenv(

13
app/static/chartjs/chart.min.js vendored Normal file

File diff suppressed because one or more lines are too long