Skip to content

Commit

Permalink
fixed rendering of last team in list, prepared release
Browse files Browse the repository at this point in the history
  • Loading branch information
fewieden committed Feb 13, 2021
1 parent 69c5301 commit c617714
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# MMM-soccer Changelog

## [Unreleased]
## [2.2.1]

### Fixed

### Added

### Changed

### Removed
* [Nunjuck template was rendering one team less than specified in config](https://github.com/fewieden/MMM-soccer/issues/39)

## [2.2.0]

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mmm-soccer",
"version": "2.2.0",
"version": "2.2.1",
"description": "European Soccer Standings Module for MagicMirror2",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion templates/MMM-soccer.njk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</tr>
</thead>
<tbody>
{% for index in range(boundaries.firstTeam, boundaries.lastTeam) %}
{% for index in range(boundaries.firstTeam, boundaries.lastTeam + 1) %}
<tr class="centered-row {% if index === boundaries.focusTeamIndex %}bright{% endif %}" style="{{ index | fade(boundaries.focusTeamIndex) }}">
<td>{{ standing[index].position }}</td>
{% if config.logos %}
Expand Down

0 comments on commit c617714

Please sign in to comment.