Commit a5f976f0 authored by shadMod's avatar shadMod 💬

pass debug in News() and init_data_directory()

parent e8f30490
...@@ -47,7 +47,7 @@ def create_app(data_path, debug=False): ...@@ -47,7 +47,7 @@ def create_app(data_path, debug=False):
) )
# Prepare the data directory # Prepare the data directory
init_data_directory(data_path) init_data_directory(data_path, debug)
# Load the secret key # Load the secret key
with open(os.path.join(data_path, "secret_key")) as fn: with open(os.path.join(data_path, "secret_key")) as fn:
...@@ -62,7 +62,7 @@ def create_app(data_path, debug=False): ...@@ -62,7 +62,7 @@ def create_app(data_path, debug=False):
utils.prepare_app(app) utils.prepare_app(app)
app.news = News() app.news = News(debug)
app.download = Downloads(data_path) app.download = Downloads(data_path)
app.register_blueprint(redirects.prepare_blueprint(app)) app.register_blueprint(redirects.prepare_blueprint(app))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment