diff --git a/CHANGELOG.md b/CHANGELOG.md index c0d2d51..920adee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +* Fix error when showing session list with no sessions (https://git.kucharczyk.xyz/lukas/timetracker/issues/31) + ## 0.2.1 / 2023-01-13 16:53+01:00 * List number of sessions when filtering on session list diff --git a/Dockerfile b/Dockerfile index 903342a..7360455 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm install && \ FROM python:3.10.9-alpine -ENV VERSION_NUMBER 0.2.1-2-g734e6de +ENV VERSION_NUMBER 0.2.2 ENV PROD 1 RUN apk add \ diff --git a/pyproject.toml b/pyproject.toml index 06ec4ca..e52b7e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "timetracker" -version = "0.2.1" +version = "0.2.2" description = "A simple time tracker." authors = ["Lukáš Kucharczyk "] license = "GPL" diff --git a/src/web/tracker/templates/list_sessions.html b/src/web/tracker/templates/list_sessions.html index 7f389d8..e59bbe0 100644 --- a/src/web/tracker/templates/list_sessions.html +++ b/src/web/tracker/templates/list_sessions.html @@ -4,7 +4,7 @@ {% block content %}
- {% if dataset.count > 0 %} + {% if dataset.count >= 2 %}