diff --git a/src/apps/activities/api/activities.py b/src/apps/activities/api/activities.py index d2a1641264c..b43ae970010 100644 --- a/src/apps/activities/api/activities.py +++ b/src/apps/activities/api/activities.py @@ -389,10 +389,6 @@ async def applet_activities_counters_for_subject( all_assigned_ids = set(assigned_activities.activities.keys()).union(auto_activity_ids) - activities_or_flows_ids_with_submissions = set(submitted_activities.activities.keys()) - - activities_or_flows_ids_without_submissions = all_assigned_ids.difference(activities_or_flows_ids_with_submissions) - activities_counters = ActivitiesCounters(subject_id=subject_id) for activity_or_flow_id in submitted_activities.activities: diff --git a/src/apps/activities/router.py b/src/apps/activities/router.py index 7adaa1e376f..248589f6673 100644 --- a/src/apps/activities/router.py +++ b/src/apps/activities/router.py @@ -138,7 +138,8 @@ router.get( "/applet/{applet_id}/subject/{subject_id}/counters", - description="""Get number of submissions and participants for activities and activity flows associated with the given participant, either as respondent or target subject. + description="""Get number of submissions and participants for activities and activity + flows associated with the given participant, either as respondent or target subject. """, status_code=status.HTTP_200_OK, responses={