Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Bump version

Roland Geider9138f85200bb
diff --git a/wger/__init__.py b/wger/__init__.py
index c1d3f855c..b0da42ec5 100644
--- a/wger/__init__.py
+++ b/wger/__init__.py
@@ -11,7 +11,7 @@ from .celery_configuration import app
MIN_APP_VERSION = (1, 7, 4, 'final', 1)
-VERSION = (2, 3, 0, 'alpha', 3)
+VERSION = (2, 3, 0, 'alpha', 4)
RELEASE = True
diff --git a/wger/manager/views/pdf.py b/wger/manager/views/pdf.py
index 4c0a3b084..433c4e0e0 100644
--- a/wger/manager/views/pdf.py
+++ b/wger/manager/views/pdf.py
@@ -46,7 +46,6 @@ from wger.utils.pdf import (
styleSheet,
)
-
logger = logging.getLogger(__name__)
@@ -99,6 +98,8 @@ def workout_log(request, pk: int, images=False):
# Iterate through the Workout and render the training days
for day_data in routine.data_for_iteration():
+ if day_data.day is None:
+ continue
elements.append(render_workout_day(day_data, images=images, comments=comments))
elements.append(Spacer(10 * cm, 0.5 * cm))
@@ -166,6 +167,8 @@ def workout_view(request, pk, images: bool = False):
# Iterate through the Workout and render the training days
for day_data in routine.data_for_iteration():
+ if day_data.day is None:
+ continue
elements.append(
render_workout_day(day_data, images=images, comments=comments, only_table=True),
)