Skip to content

Commit

Permalink
Update workload calculation in service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tubo authored Mar 6, 2024
1 parent 3ceb302 commit d721ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radscheduler/core/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def retrieve_workload_breakdown(start: date = None, end: date = None):
workload = df_shifts.groupby(["registrar", "type_"]).size().unstack().fillna(0)
workload["FATIGUE"] = (
workload["LONG"] * 1 + workload["NIGHT"] * 7 + workload["WEEKEND"] * 4 + workload["WKD NIGHT"] * 5
)
) / 10
workload = workload.merge(df_registrars, left_index=True, right_on="id", how="left")
workload.drop(["id"], axis=1, inplace=True)
return workload
Expand Down

0 comments on commit d721ef0

Please sign in to comment.