This isn't quite what I meant. What I meant was that you should be able to just use `%(num)s` in the string and `ngettext` will automatically format it for you:

```jinja
{{ ngettext('%(num)s task', '%(num)s tasks', user.attempts_finished_count) }}
```

If I'm wrong and that doesn't work, `|f` like you had before is the right way to do this.