Skip to content

Commit 7ec4648

Browse files
committed
Import air quality assemblies, as well as climate assemblies
1 parent b4194bc commit 7ec4648

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

caps/management/commands/import_citizens_assemblies.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ def get_citizens_assembilies() -> pd.DataFrame:
2121
done_survey=True,
2222
)
2323

24-
# limit to those with 'climate' in the thematic_grouping
25-
df = df[df["thematic_grouping"].str.lower().str.contains("climate")]
24+
# limit to those with climate-related thematic groups
25+
df = df[
26+
df["thematic_grouping"].str.contains("climate", case=False)
27+
| df["thematic_grouping"].str.contains("air quality", case=False)
28+
]
2629
# limit to completed assemblies
2730
df = df[df["assembly_status"] == "Finished"]
2831
# limit to just those that have a local_authority_code

0 commit comments

Comments
 (0)