Skip to content

Confusing help text in Worker.task_count field #205

Description

@i386x

Help text in Worker.task_count says Count of processed tasks, see

task_count = models.PositiveIntegerField(blank=True, default=0, help_text=_("Count of processed tasks.<br />This is a generated field."))
But in reality it records the count of opened tasks, see

kobo/kobo/hub/models.py

Lines 208 to 209 in 84434c5

tasks = Task.objects.opened().filter(worker=self)
self.task_count = tasks.count()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions