mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-24 16:42:34 +02:00
Fix metric (#344)
Small fix for the metric of "Umsatz" widget on the company page
This commit is contained in:
parent
f4998a6fae
commit
daf39d6ee3
@ -106,14 +106,14 @@ def create_company_stats(
|
|||||||
finance_data_updated = (
|
finance_data_updated = (
|
||||||
pd.DataFrame(
|
pd.DataFrame(
|
||||||
data={
|
data={
|
||||||
"current_assets": [""],
|
"revenue": [""],
|
||||||
"date": datetime.today(),
|
"date": datetime.today(),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if finance_data.empty
|
if finance_data.empty
|
||||||
else finance_data.sort_values(by=["date"], ascending=False)
|
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
|
# set data for third widget
|
||||||
widget3_title = "Stimmung"
|
widget3_title = "Stimmung"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user