Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: miigotu <miigotu@gmail.com>
  • Loading branch information
miigotu committed Nov 4, 2023
1 parent 2ce5196 commit 859d731
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
28 changes: 12 additions & 16 deletions frontend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,26 @@
"""

import threading
from logging.config import dictConfig

from flask import Flask

from .config import blueprint as config_blueprint
from .movies import blueprint as movies_blueprint
from .shows import blueprint as shows_blueprint

from logging.config import dictConfig

dictConfig({
'version': 1,
'formatters': {'default': {
'format': '[%(asctime)s] %(levelname)s in %(module)s: %(message)s',
}},
'handlers': {'wsgi': {
'class': 'logging.StreamHandler',
'stream': 'ext://flask.logging.wsgi_errors_stream',
'formatter': 'default'
}},
'root': {
'level': 'DEBUG',
'handlers': ['wsgi']
dictConfig(
{
"version": 1,
"formatters": {
"default": {
"format": "[%(asctime)s] %(levelname)s in %(module)s: %(message)s",
}
},
"handlers": {"wsgi": {"class": "logging.StreamHandler", "stream": "ext://flask.logging.wsgi_errors_stream", "formatter": "default"}},
"root": {"level": "DEBUG", "handlers": ["wsgi"]},
}
})
)


class FlaskServer(threading.Thread):
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@
"sickchill/gui/slick/js/lib/*",
"tests/js/index.js",
"frontend/static/*",
"frontend/movies/static/",
"frontend/shows/static/",
"frontend/config/static/",
"webpack.config.js"
]
}
Expand Down
10 changes: 7 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const config = {
},
};

let configurations = Object.assign({}, config, {
let configurations = JSON.parse(JSON.stringify(config));
Object.assign(configurations, {
name: 'config',
context: path.resolve(__dirname, 'frontend', 'config', 'src', 'js'),
entry: {
Expand All @@ -64,7 +65,9 @@ let configurations = Object.assign({}, config, {
publicPath: path.resolve('static')
},
});
let shows = Object.assign({}, config, {

let shows = JSON.parse(JSON.stringify(config));
Object.assign(shows, {
name: 'shows',
context: path.resolve(__dirname, 'frontend', 'shows', 'src', 'js'),
entry: {
Expand All @@ -78,7 +81,8 @@ let shows = Object.assign({}, config, {
},
});

let movies = Object.assign({}, config, {
let movies = JSON.parse(JSON.stringify(config));
Object.assign(movies, {
name: 'movies',
context: path.resolve(__dirname, 'frontend', 'movies', 'src', 'js'),
entry: {
Expand Down

0 comments on commit 859d731

Please sign in to comment.