Commit 47d7ec4e authored by Agrigor's avatar Agrigor
Browse files

minor refactoring for pep8

parent 0848db75
import pixelframe.controllers
import os
from flask import Flask
## create and configure the app
# create and configure the app
app = Flask(__name__, instance_relative_config=True)
app.config.from_mapping(
SECRET_KEY='dev',
......@@ -13,8 +13,7 @@ app.config.from_mapping(
try:
os.makedirs(app.instance_path)
except OSError:
pass # :D :-D :-D
pass # :D :-D :-D
import pixelframe.controllers
# return app
\ No newline at end of file
# return app
......@@ -8,14 +8,15 @@ config = {
]
}
def update(data):
# TODO: Check if there's something better to validate json data
print(f'>> updating config: {data}')
if "images" in data:
config['images'] = data['images']
if "path" in data:
config['path'] = data['path']
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