diff --git a/rowers/management/commands/autojoin.py b/rowers/management/commands/autojoin.py index 2debb9f3..107e8305 100644 --- a/rowers/management/commands/autojoin.py +++ b/rowers/management/commands/autojoin.py @@ -43,6 +43,7 @@ class Command(BaseCommand): for r in rs: workouts = Workout.objects.filter(user=r, + duplicate=False, startdatetime__gte=timezone.now()-datetime.timedelta(days=2))