Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Remove unecessary code

Roland Geider677066ab18d8
diff --git a/wger/manager/views.py b/wger/manager/views.py
index 0ae1f2670..15495dac6 100644
--- a/wger/manager/views.py
+++ b/wger/manager/views.py
@@ -104,7 +104,6 @@ def dashboard(request):
# Load the last workout, if one exists
try:
current_workout = TrainingSchedule.objects.filter(user=request.user).latest('creation_date')
- template_data['current_workout'] = current_workout
except ObjectDoesNotExist:
current_workout = False
template_data['current_workout'] = current_workout