Self hosted FLOSS fitness/workout, nutrition and weight tracker
Check trainer preferences for member activity
Roland Geider1e39163d6a0b
diff --git a/wger/gym/management/commands/inactive-members.py b/wger/gym/management/commands/inactive-members.pyindex 84cad6727..331cd313a 100644--- a/wger/gym/management/commands/inactive-members.py+++ b/wger/gym/management/commands/inactive-members.py@@ -73,6 +73,10 @@ class Command(BaseCommand):if not trainer.email:continue+ # Check trainer preferences+ if not trainer.gymadminconfig.overview_inactive:+ continue+translation.activate(trainer.userprofile.notification_language.short_name)subject = _('Reminder of inactive members')context = {