From 9d2d0b11870132990dc2a48ce8714c4d5d4812dd Mon Sep 17 00:00:00 2001 From: Adrian Edwards Date: Wed, 9 Oct 2024 09:32:46 -0400 Subject: [PATCH] run formatter --- .../repo_overview/visualizations/ossf_scorecard.py | 6 ++---- .../visualizations/repo_general_info.py | 13 ++----------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/8Knot/pages/repo_overview/visualizations/ossf_scorecard.py b/8Knot/pages/repo_overview/visualizations/ossf_scorecard.py index e4f760b5..29eb36a2 100644 --- a/8Knot/pages/repo_overview/visualizations/ossf_scorecard.py +++ b/8Knot/pages/repo_overview/visualizations/ossf_scorecard.py @@ -45,10 +45,8 @@ dbc.Row( [ dbc.Label( - [ - "Last Updated:", - html.Span(id=f"{PAGE}-{VIZ_ID}-updated") - ], className="mr-2" + ["Last Updated:", html.Span(id=f"{PAGE}-{VIZ_ID}-updated")], + className="mr-2", ) ] ), diff --git a/8Knot/pages/repo_overview/visualizations/repo_general_info.py b/8Knot/pages/repo_overview/visualizations/repo_general_info.py index afc1014c..e0db7cb5 100644 --- a/8Knot/pages/repo_overview/visualizations/repo_general_info.py +++ b/8Knot/pages/repo_overview/visualizations/repo_general_info.py @@ -32,16 +32,7 @@ dcc.Loading( html.Div(id=f"{PAGE}-{VIZ_ID}"), ), - dbc.Row( - [ - dbc.Label( - [ - "Last Updated:", - html.Span(id=f"{PAGE}-{VIZ_ID}-updated") - ], className="mr-2" - ) - ] - ), + dbc.Row([dbc.Label(["Last Updated:", html.Span(id=f"{PAGE}-{VIZ_ID}-updated")], className="mr-2")]), ] ) ], @@ -90,7 +81,7 @@ def repo_general_info(repo): def process_data(df_repo_files, df_repo_info, df_releases): - + updated_times_repo_info = pd.to_datetime(df_repo_info["data_collection_date"]) unique_updated_times = updated_times_repo_info.drop_duplicates().to_numpy().flatten()