Skip to content

Commit

Permalink
fixup! import command for 2025 scorecards FOI data
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Nov 7, 2024
1 parent 7260e56 commit e54c94c
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion crowdsourcer/management/commands/import_2025_foi_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,21 @@ class Command(BaseCommand):
"question": 3,
"question_part": "a",
"type": "yes_no",
"notes": [
"Evidence provided for type of lobbying (letter/email/meeting/none provided:",
"Target of lobbying (UK national government, Welsh Government, Scottish Government, Northern Ireland Executive):",
"Council ask of government (government action/further council funding or support):",
],
},
"C&E Q12": {
"section": "Collaboration & Engagement (CA)",
"question": 10,
"type": "tiered",
"notes": [
"Does the agreement between the council and employee representative body (including recognised trade union) making explicit reference to contributing to climate change related work?",
"Were employee representatives bodies consulted during the development of the Climate Action Plan AND there are plans in place to continue engaging employee representative bodies in matters relating to the implementation of the Climate Action Plan?",
"Evidence provided (policy/agreement/consultation evidence/none provided)",
],
},
"B&H Q2": {
"section": "Buildings & Heating & Green Skills (CA)",
Expand All @@ -178,11 +188,19 @@ class Command(BaseCommand):
"section": "Governance & Finance (CA)",
"question": 9,
"type": "yes_no",
"notes": [
"Please copy and paste the list of roles:",
],
},
"G&F Q9": {
"section": "Governance & Finance (CA)",
"question": 10,
"type": "yes_no",
"notes": [
"Notes (please add in how many senior management have been trained if any)",
"Notes (please add in how many councillors have been trained if any and state if they are leadership or not)",
"If provided, please list the type of training:",
],
},
"Transport Q4c": {
"section": "Transport (CA)",
Expand Down Expand Up @@ -844,8 +862,11 @@ def process_ca_q9(self, council_lookup, rt, u, ms):
if not pd.isna(row.iloc[13]):
defaults_9a["private_notes"] = (
defaults_9a["private_notes"]
+ "\nnumber of courses:\n"
+ str(courses)
+ "\n"
+ "\nlist of courses:\n"
+ str(row.iloc[14])
+ str(row.iloc[13])
+ "\n"
)

Expand Down

0 comments on commit e54c94c

Please sign in to comment.