Fix metric (#344)

Small fix for the metric of "Umsatz" widget on the company page
This commit is contained in:
KM-R 2023-11-08 14:50:58 +01:00 committed by GitHub
parent f4998a6fae
commit daf39d6ee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,14 +106,14 @@ def create_company_stats(
finance_data_updated = (
pd.DataFrame(
data={
"current_assets": [""],
"revenue": [""],
"date": datetime.today(),
}
)
if finance_data.empty
else finance_data.sort_values(by=["date"], ascending=False)
)
widget2_content = format_currency_de(finance_data_updated["current_assets"].iloc[0])
widget2_content = format_currency_de(finance_data_updated["revenue"].iloc[0])
# set data for third widget
widget3_title = "Stimmung"