Skip to content

Commit 8f2a18c

Browse files
committed
Add 2025
1 parent 1522a29 commit 8f2a18c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utils/mk_bubbles.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import fetch from 'node-fetch';
77

88
const API_URL = 'https://next.obudget.org/api/query?query=';
99
const DOC_URL = 'https://next.obudget.org/get/';
10-
const YEAR = 2024;
11-
const PROPOSAL_YEAR = 2025;
10+
const YEAR = 2025;
11+
const PROPOSAL_YEAR = 0; //2025;
1212
const BUDGET_CODE = '0020670142';
1313

1414
const RETURNS_CONDITION = `
@@ -110,6 +110,9 @@ function sleep(ms) {
110110
}
111111

112112
function sql_total_amount(year) {
113+
if (year < 0) {
114+
return null;
115+
}
113116
const SQL = `
114117
SELECT sum(net_allocated) AS total_amount
115118
FROM raw_budget

0 commit comments

Comments
 (0)