diff options
Diffstat (limited to 'app/admin/routes.py')
| -rw-r--r-- | app/admin/routes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/admin/routes.py b/app/admin/routes.py index e07475f..0736549 100644 --- a/app/admin/routes.py +++ b/app/admin/routes.py @@ -163,10 +163,11 @@ def manage_datasets(): for dataset in Dataset.query.all(): tasks = Task.query.filter_by(dataset_id=dataset.id).all() n_complete = len([t for t in tasks if t.done]) + desired = current_app.config["TASKS_NUM_PER_DATASET"] if len(tasks) == 0: perc = float("nan") else: - perc = n_complete / len(tasks) * 100 + perc = n_complete / desired * 100 entry = { "id": dataset.id, "name": dataset.name, |
