Skip to content

Commit

Permalink
adds total edits to report (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
dxenes1 authored Mar 29, 2023
1 parent cf3f1cb commit 0a54d83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neuvue_project/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def post(self, request, *args, **kwargs):
"Avg Duration (m)"
]
if task_has_edits:
columns.append("Average Edits")
columns.extend(["Average Edits", "Total Edits"])
status_states = ["pending", "open", "closed", "errored"]
columns.extend(status_states)
table_rows = []
Expand All @@ -411,7 +411,8 @@ def post(self, request, *args, **kwargs):

if task_has_edits:
avg_edits = str(round(assignee_df["n_operation_ids"].mean(), 2))
user_metrics.append(avg_edits)
total_edits = str(round(assignee_df["n_operation_ids"].sum(), 2))
user_metrics.extend([avg_edits, total_edits])

for status in status_states:
number_of_tasks = len(assignee_df[assignee_df["status"] == status])
Expand Down

0 comments on commit 0a54d83

Please sign in to comment.