aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-04-09 16:42:06 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2021-04-09 14:44:33 +0000
commitcce9613d07488af34aae600ee1a3804f945e7ffa (patch)
treebff38c896e242d75ce39acd2988a645d12b77956
parentaac3984217f993d1e62a8eab8e1e86b05cdaf664 (diff)
Remove unused code and clarifying year
Removing old function that was not being used, and also the subprocess import. Clarifying the year as 'starting year' at the moment. Fixes: QTWEBSITE-979 Change-Id: Idf6e3fa2688cbf14a9bcf1ca1c188758fece6038 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--app.py49
1 files changed, 1 insertions, 48 deletions
diff --git a/app.py b/app.py
index 2bbf4fe..19a2c31 100644
--- a/app.py
+++ b/app.py
@@ -15,7 +15,6 @@ import os
import io
import sys
import zipfile
-import subprocess
from dash.dependencies import Input, Output
external_stylesheets = [
@@ -383,7 +382,7 @@ def get_filter(modules, years):
children=[
html.Div(
children=[
- html.Div(children="Year", className="menu-title"),
+ html.Div(children="Starting year", className="menu-title"),
dcc.Dropdown(
id="year-filter",
options=[{"label": m, "value": m} for m in years],
@@ -401,52 +400,6 @@ def get_filter(modules, years):
)
-def get_filter_email(lists):
- """
- Get div containing the combobox to filter the mailing lists,
- to trigger the charts update.
- """
- return html.Div(
- children=[
- html.Div(
- children=[
- html.Div(
- children=[
- html.Div(children="Mailing List", className="menu-title"),
- dcc.Dropdown(
- id="mailing-list-filter",
- options=[{"label": m, "value": m} for m in lists],
- value="development",
- clearable=False,
- className="dropdown",
- ),
- ],
- ),
- ],
- className="six columns",
- ),
- html.Div(
- children=[
- html.Div(
- children=[
- html.Div(children="Year", className="menu-title"),
- dcc.Dropdown(
- id="mailing-list-year-filter",
- options=[{"label": m, "value": m} for m in years],
- value="2018",
- clearable=False,
- className="dropdown",
- ),
- ],
- ),
- ],
- className="six columns",
- ),
- ],
- className="row card option-select",
- )
-
-
def get_markdown_content(filename):
print(f"Reading '{filename}'...")
content = ""