From c5b451a258f33bd75e9837e50288be9a340433a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sun, 15 Jan 2023 18:02:48 +0100 Subject: [PATCH] Fix error when showing session list with no sessions Fixes #31 --- CHANGELOG.md | 2 ++ Dockerfile | 2 +- pyproject.toml | 2 +- src/web/tracker/templates/list_sessions.html | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) 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 %}