From afeba8a244ec3949311110077527aca711d1582a Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sat, 3 Dec 2022 17:55:51 +1100 Subject: [PATCH] Fix error where a blank topset was rendered for a empty workout --- templates/partials/page/calendar.html | 2 +- utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/partials/page/calendar.html b/templates/partials/page/calendar.html index 07dcca0..bb8ae2e 100644 --- a/templates/partials/page/calendar.html +++ b/templates/partials/page/calendar.html @@ -89,7 +89,7 @@ {{ date.day }}
- {% if workout %} + {% if workout['TopSets']|length > 0 %} {% for topset in workout['TopSets'] %}