Skip to content

Commit

Permalink
fix: minor sorting update
Browse files Browse the repository at this point in the history
  • Loading branch information
bensteUEM committed Jan 12, 2025
1 parent 74a0611 commit 63788a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions church_web_helper/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def ct_service_workload():
),
"Monat": datetime.strptime(
event["startDate"], "%Y-%m-%dT%H:%M:%SZ"
).strftime("%B"),
).strftime("%m %B"),
"Eventname": event["name"],
"Dienst": service["serviceId"],
"Name": service["name"],
Expand Down Expand Up @@ -589,13 +589,13 @@ def ct_service_workload():
.unstack()
.fillna(0)
.transpose()
.sort_index(ascending=False)
.sort_index(ascending=True)
)
df_table_2 = (
df_table_1.rolling(window=len(df_table_1), min_periods=1)
.sum()
.astype(int)
.sort_index(ascending=False)
.sort_index(ascending=True)
)
tables = {
"Monatsübersicht": df_table_1.to_html(
Expand Down

0 comments on commit 63788a7

Please sign in to comment.