timing
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2025-01-30 10:19:07 +01:00
parent 67b88aa2a1
commit 408cff442c

View File

@ -53,10 +53,13 @@ def index():
start_time = time.time()
df = pd.read_sql("SELECT month, cast(year AS varchar), current_energy AS value FROM pv_energy_by_month", con=engine)
duration = time.time() - start_time
step1_time = time.time()
duration1 = step1_time - start_time
fig_1 = px.bar(df, x='month', y='value', color='year', barmode='group')
step2_time = time.time()
duration2 = step2_time - start_time
fig_1.update_layout(
title=f"Jahreswerte Exportierte Energie {duration}",
title=f"Jahreswerte Exportierte Energie {duration1:.3f}, {duration2:.3f}",
xaxis_title="",
yaxis_title="",
legend_title="Jahr",