Skip to content

Commit 2f646e1

Browse files
Fixed linter issues
1 parent bf47f14 commit 2f646e1

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

python-dash/apps/app_3/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
html.Div(
7575
children="Date Range",
7676
className="menu-title"
77-
),
77+
),
7878
dcc.DatePickerRange(
7979
id="date-range",
8080
min_date_allowed=data.Date.min().date(),

python-dash/apps/app_4/app.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,23 @@
1111

1212
external_stylesheets = [
1313
{
14-
"href": "https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap",
14+
"href": "https://fonts.googleapis.com/css2?"
15+
"family=Lato:wght@400;700&display=swap",
1516
"rel": "stylesheet",
1617
},
1718
]
1819
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
1920
server = app.server
2021
app.title = "Avocados Analytics: Understand Your Avocados!"
22+
2123
app.layout = html.Div(
2224
children=[
2325
html.Div(
2426
children=[
2527
html.P(children="🥑", className="header-emoji"),
26-
html.H1(children="Avocados Analytics", className="header-title"),
28+
html.H1(
29+
children="Avocados Analytics", className="header-title"
30+
),
2731
html.P(
2832
children="Analyze the behaviour of prices"
2933
" and the number of avocados sold in the US"
@@ -68,7 +72,10 @@
6872
),
6973
html.Div(
7074
children=[
71-
html.Div(children="Date Range", className="menu-title"),
75+
html.Div(
76+
children="Date Range",
77+
className="menu-title"
78+
),
7279
dcc.DatePickerRange(
7380
id="date-range",
7481
min_date_allowed=data.Date.min().date(),
@@ -149,7 +156,7 @@ def update_charts(region, avocado_type, start_date, end_date):
149156
},
150157
],
151158
"layout": {
152-
"title": {"text": "Avocados Sold", "x": 0.05, "xanchor": "left",},
159+
"title": {"text": "Avocados Sold", "x": 0.05, "xanchor": "left"},
153160
"xaxis": {"fixedrange": True},
154161
"yaxis": {"fixedrange": True},
155162
"colorway": ["#E12D39"],

0 commit comments

Comments
 (0)