Skip to content

Commit c617714

Browse files
committed
fixed rendering of last team in list, prepared release
1 parent 69c5301 commit c617714

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# MMM-soccer Changelog
22

3-
## [Unreleased]
3+
## [2.2.1]
44

55
### Fixed
66

7-
### Added
8-
9-
### Changed
10-
11-
### Removed
7+
* [Nunjuck template was rendering one team less than specified in config](https://github.com/fewieden/MMM-soccer/issues/39)
128

139
## [2.2.0]
1410

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mmm-soccer",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "European Soccer Standings Module for MagicMirror2",
55
"repository": {
66
"type": "git",

templates/MMM-soccer.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</tr>
1919
</thead>
2020
<tbody>
21-
{% for index in range(boundaries.firstTeam, boundaries.lastTeam) %}
21+
{% for index in range(boundaries.firstTeam, boundaries.lastTeam + 1) %}
2222
<tr class="centered-row {% if index === boundaries.focusTeamIndex %}bright{% endif %}" style="{{ index | fade(boundaries.focusTeamIndex) }}">
2323
<td>{{ standing[index].position }}</td>
2424
{% if config.logos %}

0 commit comments

Comments
 (0)