Self hosted FLOSS fitness/workout, nutrition and weight tracker
Remove unused class
Roland Geider5ac7f99445e9
diff --git a/wger/manager/helpers.py b/wger/manager/helpers.pyindex 806a5c97d..79bc32981 100644--- a/wger/manager/helpers.py+++ b/wger/manager/helpers.py@@ -18,7 +18,6 @@# Standard Libraryimport datetimefrom calendar import HTMLCalendar-from typing import List# Djangofrom django.urls import reverse@@ -37,7 +36,6 @@ from reportlab.platypus import ()# wger-from wger.exercises.models import Musclefrom wger.utils.pdf import (header_colour,row_color,@@ -275,34 +273,3 @@ class WorkoutCalendar(HTMLCalendar):Renders a day cell"""return '<td class="{0}" style="vertical-align: middle;">{1}</td>'.format(cssclass, body)---class MusclesHelper:- """- Helper container for trained muscles in a workout plan, day, etc.- """- front: List[Muscle]- back: List[Muscle]- front_secondary: List[Muscle]- back_secondary: List[Muscle]-- def __init__(self):- self.front = []- self.front_secondary = []- self.back = []- self.back_secondary = []-- def __add__(self, other):- for attr in ['front', 'front_secondary', 'back', 'back_secondary']:- for m in getattr(other, attr):- self.add(m)-- return self-- def add(self, muscle: Muscle, main=True):- target = 'front' if muscle.is_front else 'back'- suffix = '_secondary' if not main else ''- muscles: List = getattr(self, target + suffix)-- if not muscle in muscles:- muscles.append(muscle)