Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 4, 2024
1 parent 6d11e41 commit a5eec3d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
1 change: 0 additions & 1 deletion ui/components/body.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import dash_bootstrap_components as dbc

from components.optimize import optimize
from components.scrape import scrape

Expand Down
20 changes: 11 additions & 9 deletions ui/components/optimize.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import dash_bootstrap_components as dbc
import ffbot
import pandas as pd
from app import POSITIONS, TEAM, app
from dash import Input, Output, State, dash_table, html
from dash.dash_table.Format import Format, Scheme

from app import POSITIONS, TEAM, app
import ffbot

optimize = html.Div(
[
Expand Down Expand Up @@ -43,13 +43,15 @@ def run_optimize(_, data, week):
# Run optimizer
df_opt = ffbot.optimize(df, week, TEAM, POSITIONS)
columns_opt = [
dict(id=i, name=i)
if i in ["Add", "Drop"]
else dict(
format=Format(precision=2, scheme=Scheme.fixed),
id=i,
name=i,
type="numeric",
(
dict(id=i, name=i)
if i in ["Add", "Drop"]
else dict(
format=Format(precision=2, scheme=Scheme.fixed),
id=i,
name=i,
type="numeric",
)
)
for i in df_opt.columns
]
Expand Down
4 changes: 2 additions & 2 deletions ui/components/scrape.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import dash_bootstrap_components as dbc
import ffbot
from app import app
from dash import Input, Output, dash_table, html

from app import app
import ffbot

scrape = html.Div(
[
Expand Down
3 changes: 1 addition & 2 deletions ui/index.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from dash import html

from app import app
from components.body import body
from components.footer import footer
from components.navbar import navbar
from dash import html

app.layout = html.Div(
[
Expand Down

0 comments on commit a5eec3d

Please sign in to comment.