You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data/odas.json
+43-43Lines changed: 43 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,8 @@
3
3
[
4
4
{
5
5
"name":"Foreign, Commonwealth and Development Office",
6
-
"year":"2023",
7
-
"value": 9491,
6
+
"year":"2024",
7
+
"value": 9465,
8
8
"percentage": 61.90,
9
9
"shortName": "FCDO",
10
10
"note": "This figure is calculated by summing the those for the recently combined Department for International Development (DFID) and Foreign and Commonwealth Office (FCO) to reflect the new department. The source data describes these institutions separately."
@@ -14,8 +14,8 @@
14
14
[
15
15
{
16
16
"name":"Home Office",
17
-
"year":"2023",
18
-
"value": 2954,
17
+
"year":"2024",
18
+
"value": 2384,
19
19
"percentage": 19.30,
20
20
"shortName": "Home Office",
21
21
"note": ""
@@ -25,30 +25,19 @@
25
25
[
26
26
{
27
27
"name":"Department of Health and Social Care",
28
-
"year":"2023",
29
-
"value": 535,
28
+
"year":"2024",
29
+
"value": 433,
30
30
"percentage": 3.50,
31
31
"shortName": "DoH",
32
32
"note": ""
33
33
}
34
34
],
35
-
"MHCLG":
36
-
[
37
-
{
38
-
"name":"Ministry of Housing, Communities and Local Government",
39
-
"year":"2023",
40
-
"value": 466,
41
-
"percentage": 3.00,
42
-
"shortName": "MHCLG",
43
-
"note": ""
44
-
}
45
-
],
46
35
"DESNZ":
47
36
[
48
37
{
49
38
"name":"Department for Energy Security and Net Zero",
50
-
"year":"2023",
51
-
"value": 440,
39
+
"year":"2024",
40
+
"value": 408,
52
41
"percentage": 2.90,
53
42
"shortName": "DESNZ",
54
43
"note": ""
@@ -58,54 +47,65 @@
58
47
[
59
48
{
60
49
"name":"UK Integrated Security Fund",
61
-
"year":"2023",
62
-
"value": 326,
50
+
"year":"2024",
51
+
"value": 369,
63
52
"percentage": 2.10,
64
53
"shortName": "CSSF",
65
54
"note": ""
66
55
}
67
56
],
68
-
"DWP":
57
+
"DSIT":
69
58
[
70
59
{
71
-
"name":"Department for Work and Pensions",
72
-
"year":"2023",
73
-
"value": 257,
74
-
"percentage": 1.70,
75
-
"shortName": "DWP",
60
+
"name":"Department for Science, Innovation and Technology",
61
+
"year":"2024",
62
+
"value": 215,
63
+
"percentage": 1.10,
64
+
"shortName": "DSIT",
76
65
"note": ""
77
66
}
78
67
],
79
-
"DFE":
68
+
"DEFRA":
80
69
[
81
70
{
82
-
"name":"Department for Education",
83
-
"year":"2023",
84
-
"value": 169,
71
+
"name":"Department for Environment Food and Rural Affairs",
72
+
"year":"2024",
73
+
"value": 186,
85
74
"percentage": 1.10,
86
-
"shortName": "DoE",
75
+
"shortName": "DEFRA",
87
76
"note": ""
88
77
}
89
78
],
90
-
"DSIT":
79
+
"MHCLG":
91
80
[
92
81
{
93
-
"name":"Department for Science, Innovation and Technology",
94
-
"year":"2023",
95
-
"value": 167,
96
-
"percentage": 1.10,
97
-
"shortName": "DSIT",
82
+
"name":"Ministry of Housing, Communities and Local Government",
83
+
"year":"2024",
84
+
"value": 98,
85
+
"percentage": 3.00,
86
+
"shortName": "MHCLG",
98
87
"note": ""
99
88
}
100
89
],
101
-
"DEFRA":
90
+
"DWP":
102
91
[
103
92
{
104
-
"name":"Department for Environment Food and Rural Affairs",
newApiCall=settings.oipa_api_url + "activity?q=budget_period_start_iso_date:[#{settings.current_first_day_of_financial_year}T00:00:00Z TO *] AND budget_period_end_iso_date:[* TO #{settings.current_last_day_of_financial_year}T00:00:00Z] AND budget_value_gbp:* AND participating_org_ref:(GB-GOV-* OR GB-COH-*) AND reporting_org_ref:(#{settings.goverment_department_ids.gsub(","," OR ")}) AND recipient_country_code:*&fl=reporting_org_ref,recipient_country_percentage,activity_status_code,iati_identifier,budget.period-start.quarter,budget.period-end.quarter,recipient_country_code,budget_period_start_iso_date,budget_period_end_iso_date,budget_value_gbp,recipient_country_name,hierarchy,related_activity_type,related_activity_ref&start=0&rows=#{count}"
1416
+
newApiCall=settings.oipa_api_url + "activity?q=budget_period_start_iso_date:[#{settings.current_first_day_of_financial_year}T00:00:00Z TO *] AND budget_period_end_iso_date:[* TO #{settings.current_last_day_of_financial_year}T00:00:00Z] AND budget_value_gbp:* AND participating_org_ref:(GB-GOV-* OR GB-COH-*) AND reporting_org_ref:(#{settings.goverment_department_ids.gsub(","," OR ")}) AND recipient_country_code:*&fl=recipient_region_percentage,reporting_org_ref,recipient_country_percentage,activity_status_code,iati_identifier,budget.period-start.quarter,budget.period-end.quarter,recipient_country_code,budget_period_start_iso_date,budget_period_end_iso_date,budget_value_gbp,recipient_country_name,hierarchy,related_activity_type,related_activity_ref&start=0&rows=#{count}"
1396
1417
##pagination stuff
1397
1418
page=1
1398
1419
page=page.to_i - 1
@@ -1408,7 +1429,7 @@ def generateCountryDatav7()
1408
1429
forpin2..pagesdo
1409
1430
p=p - 1
1410
1431
finalPage=p * count
1411
-
tempData=JSON.parse(RestClient.getsettings.oipa_api_url + "activity?q=budget_period_start_iso_date:[#{settings.current_first_day_of_financial_year}T00:00:00Z TO *] AND budget_period_end_iso_date:[* TO #{settings.current_last_day_of_financial_year}T00:00:00Z] AND budget_value_gbp:* AND participating_org_ref:(GB-GOV-* OR GB-COH-*) AND reporting_org_ref:(#{settings.goverment_department_ids.gsub(","," OR ")}) AND recipient_country_code:*&fl=reporting_org_ref,recipient_country_percentage,activity_status_code,iati_identifier,budget.period-start.quarter,budget.period-end.quarter,recipient_country_code,budget_period_start_iso_date,budget_period_end_iso_date,budget_value_gbp,recipient_country_name,hierarchy,related_activity_type,related_activity_ref&start=#{finalPage}&rows=#{count}")
1432
+
tempData=JSON.parse(RestClient.getsettings.oipa_api_url + "activity?q=budget_period_start_iso_date:[#{settings.current_first_day_of_financial_year}T00:00:00Z TO *] AND budget_period_end_iso_date:[* TO #{settings.current_last_day_of_financial_year}T00:00:00Z] AND budget_value_gbp:* AND participating_org_ref:(GB-GOV-* OR GB-COH-*) AND reporting_org_ref:(#{settings.goverment_department_ids.gsub(","," OR ")}) AND recipient_country_code:*&fl=recipient_region_percentage,reporting_org_ref,recipient_country_percentage,activity_status_code,iati_identifier,budget.period-start.quarter,budget.period-end.quarter,recipient_country_code,budget_period_start_iso_date,budget_period_end_iso_date,budget_value_gbp,recipient_country_name,hierarchy,related_activity_type,related_activity_ref&start=#{finalPage}&rows=#{count}")
newApiCall=settings.oipa_api_url + "activity?q=participating_org_ref:GB-GOV-* AND reporting_org_ref:(#{settings.goverment_department_ids.gsub(","," OR ")}) AND budget_period_start_iso_date:[#{settings.current_first_day_of_financial_year}T00:00:00Z TO *] AND budget_period_end_iso_date:[* TO #{settings.current_last_day_of_financial_year}T00:00:00Z] AND recipient_country_code:* AND budget_value_gbp:* AND participating_org_ref:(GB-GOV-* OR GB-COH-*)&fl=recipient_country_code,budget_period_start_iso_date,budget_period_end_iso_date,budget_value_gbp,recipient_country_name&rows=50000"
667
+
newApiCall=settings.oipa_api_url + "activity?q=participating_org_ref:GB-GOV-* AND reporting_org_ref:(#{settings.goverment_department_ids.gsub(","," OR ")}) AND budget_period_start_iso_date:[#{settings.current_first_day_of_financial_year}T00:00:00Z TO *] AND budget_period_end_iso_date:[* TO #{settings.current_last_day_of_financial_year}T00:00:00Z] AND recipient_country_code:* AND budget_value_gbp:* AND participating_org_ref:(GB-GOV-* OR GB-COH-*)&fl=recipient_country_code,budget_period_start_iso_date,budget_period_end_iso_date,budget_value_gbp,recipient_country_name,recipient_region_percentage&rows=50000"
newApiCall=settings.oipa_api_url + "activity?q=budget_value_gbp:* AND participating_org_ref:(GB-GOV-* OR GB-COH-*) AND reporting_org_ref:(#{settings.goverment_department_ids.gsub(","," OR ")}) AND budget_period_start_iso_date:[#{settings.current_first_day_of_financial_year}T00:00:00Z TO *] AND budget_period_end_iso_date:[* TO #{settings.current_last_day_of_financial_year}T00:00:00Z] AND recipient_region_code:* AND -recipient_region_code:998&fl=recipient_region_code,budget_period_start_iso_date,budget_period_end_iso_date,budget_value_gbp,recipient_region_name,sector_code,sector_percentage,hierarchy,related_activity_type,related_activity_ref&rows=50000"
169
169
else
170
170
newApiCall=settings.oipa_api_url + "activity?q=budget_value_gbp:* AND participating_org_ref:(GB-GOV-* OR GB-COH-*) AND reporting_org_ref:(#{settings.goverment_department_ids.gsub(","," OR ")}) AND budget_period_start_iso_date:[#{settings.current_first_day_of_financial_year}T00:00:00Z TO *] AND budget_period_end_iso_date:[* TO #{settings.current_last_day_of_financial_year}T00:00:00Z] AND recipient_region_code:(998)&fl=recipient_region_code,budget_period_start_iso_date,budget_period_end_iso_date,budget_value_gbp,recipient_region_name,sector_code,sector_percentage,hierarchy,related_activity_type,related_activity_ref&rows=50000"
<pclass="govuk-body-s app-card__intro">UK ODA spend by government department (<astyle="font-size: 12px" target="_BLANK" href="https://www.gov.uk/government/collections/statistics-on-international-development#-statistics-on-international-development:-aid-spend-2023">Source, Statistics on International Development 2023</a>) </p>
168
+
<pclass="govuk-body-s app-card__intro">UK ODA spend by government department (<astyle="font-size: 12px" target="_BLANK" href="https://www.gov.uk/government/collections/statistics-on-international-development#statistics-on-international-development:-uk-oda-spend-2024">Source, Statistics on International Development 2024</a>) </p>
0 commit comments