Skip to content

Commit 029fd68

Browse files
committed
fix bug to include source population cohort
1 parent e964b89 commit 029fd68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/argowrapper/routes/routes.py

+3
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ def wrapper(*args, **kwargs):
170170
if "cohort_ids" in v:
171171
cohort_ids.extend(v["cohort_ids"])
172172

173+
if "source_population_cohort" in request_body:
174+
cohort_ids.extend(request_body["source_population_cohort"])
175+
173176
if team_project and source_id and len(team_project) > 0 and len(cohort_ids) > 0:
174177
header = {"Authorization": token, "cookie": "fence={}".format(token)}
175178
url = "http://cohort-middleware-service/cohortdefinition-stats/by-source-id/{}/by-team-project?team-project={}".format(

0 commit comments

Comments
 (0)