# Problem atlas Senec: municipal finance & SCR Senec s.r.o.

Built 2026-09-16; CRZ contracts refreshed 2026-10-10; finance benchmark rebuilt and extended to 2025 for all 8 towns 2026-10-10. Everything in `data/atlas/` under this topic is derived from public sources by the scripts in
`scripts/`; raw downloads are kept in `data/atlas/raw/` (not committed) so every number can be traced.

## Files

| File | Content |
|---|---|
| `financie-benchmark.csv` | One row per town × year (2019–2025 for all 8 towns; Senec 2025 from ZÚ 2025, peers 2025 from INEKO) + `PEER_MEDIAN (7 miest)` rows (2019–2025). Absolute € values, per-capita values (`*_pc`), debt ratios, MF SR cross-check columns (`*_mfsr`), Senec-only obec-level columns (`obec_*`, `msu_*`, `scr_dotacia_from_city`). `source_main` names the source of the row. Appended 2026-10-10 after the old columns: `xcheck_ineko_*` (27 columns, filled on the Senec 2025 row only: INEKO 2025 for Senec next to the ZÚ figures) and `last_update` (ISO date the row last changed). Appended 2026-10-15 after `source_url`: `bank_loans_mfsr`, `interest_650_mfsr`, `principal_820_mfsr`, `debt_service_pct_mfsr` (MF SR beside INEKO, 2019–2023, from `mfsr-samosprava.json`). |
| `financie.json` | Same rows keyed `senec[year]`, `peers[town][year]`, `peer_median[year]`, plus `summary_2019_vs_2024_2025` (2019→2024 keys and, since 2026-10-10, 2019→2025 keys next to them), `_meta.last_update`, the full extract of Senec záverečné účty 2018–2025 (`senec_zaverecne_ucty_extract`), the multi-year EK tables from Senec budget documents 2016–2028 (`senec_budget_tables_obec_level`) and the MF SR cross-check data (`mfsr_cross_check`). |
| `scr-senec.json` / `scr-senec.csv` | Správa cestovného ruchu Senec s.r.o. (IČO 44537476): financial statements 2014–2025 from RÚZ, headcount from the notes, city subsidies from Senec ZÚ, and Mesto Senec ↔ SCR contracts found in CRZ (`scr-senec-crz-zmluvy.csv`, 72 records 2022–2026, refreshed 2026-10-10). |
| `raw/ineko_series.json` | Full 2013–2025 time series per town per indicator, as returned by INEKO's AJAX endpoint (harvested 2026-10-10). |
| `raw/senec_budget/*.pdf,*.txt` | Senec záverečné účty 2018–2025 and budgets 2019–2026 (the 16 PDFs in `extract_zu.URLS` / `extract_budget_tables.DOCS`, fetched by `scripts/fetch_finance_raw.py`); text layer from `pdftotext -layout`, or without poppler from the script's pdfplumber layout fallback. Rozpočet 2026 – 2. zmena and KVS 2024 are quoted in this README but not parsed or fetched. |
| `raw/mfsr/*.xls[x]` | MF SR open-data files, saved under the `Content-Disposition` name with spaces → `_` (`scripts/fetch_finance_raw.py`). |
| `raw/ruz_scr/` | RÚZ JSON (účtovná jednotka, závierky, výkazy) and all PDF attachments (súvaha/VZaS, poznámky, oznámenia o schválení) for SCR. |
| `raw/crz_contracts.json` | Scraped CRZ result lists for the IČO/name queries (harvested 2026-10-10). |

On [somsenec.sk/data](https://somsenec.sk/data) this dataset is `financie.json`, `financie.csv` (the `financie-benchmark.csv` above) and this README; the other files stay in the project's source data.

## Columns of `financie-benchmark.csv`

One row per town and year, then one `PEER_MEDIAN (7 miest)` row per year; `scripts/build_financie.py` writes them. Amounts are in euros, `*_pc` columns in euros per inhabitant, and the `*_pct*` columns in percent. A value a source does not give is empty. Where a figure comes from INEKO, the number given is INEKO's indicator, or the item of the economic classification (EK) in INEKO's revenue view `(1)eco.<item>` or expenditure view `(2)eco.<item>` (`INDICATORS` in `scripts/harvest_ineko.py`). Both EK views also cover the contributory organisations (Sources 1).

| Columns | Meaning |
|---|---|
| `town`, `obec_code`, `year` | Town name, or `PEER_MEDIAN (7 miest)`; the six-digit municipality code INEKO uses (Sources 1), empty on the median rows; the budget year, 2019 to 2025 |
| `population` | INEKO 341, inhabitants at the start of the year (ŠÚ SR); Senec 2025 uses 20 234 (Formulas). On the median rows, the median of the peers |
| `source_main` | The row's main source, in words |
| `current_revenue`, `capital_revenue`, `current_expenditure`, `capital_expenditure` | INEKO 311, 312, 313 and 314: revenue and expenditure of the current and the capital budget |
| `total_debt`, `bank_loans`, `accounting_result` | INEKO 331 (total debt as defined in Act 583/2004), 332 (bank loans and repayable assistance) and 342 (the year's accounting result) |
| `tax_revenue_100`, `income_tax_110`, `property_tax_120`, `goods_services_tax_130`, `development_levy_133015`, `nontax_revenue_200`, `capital_income_230`, `sale_capital_assets_231`, `sale_land_233`, `grants_transfers_300`, `capital_grants_320`, `loans_received_500` | Revenue by the EK item in the name, `(1)eco.<item>`: tax revenue, the shared income tax, property taxes, taxes on goods and services, the development levy, non-tax revenue, capital income, sales of capital assets, sales of land and intangible assets, grants and transfers, domestic capital grants and transfers, loans received |
| `current_exp_600`, `wages_610`, `insurance_620`, `goods_services_630`, `current_transfers_640`, `interest_650`, `capital_exp_700`, `principal_820` | Expenditure by the EK item in the name, `(2)eco.<item>`: current expenditure, wages, insurance contributions, goods and services, current transfers, interest, capital expenditure, repayment of principal |
| `personnel_610_620`, `local_taxes_120_130` | `wages_610` + `insurance_620`, and `property_tax_120` + `goods_services_tax_130`. A missing part counts as 0; the sum is empty when both parts are |
| `debt_pct_current_revenue_ineko`, `debt_service_pct_ineko`, `current_balance_pct_ineko` | INEKO 211 (debt against the previous year's current revenue), 212 (debt service) and 213 (current account balance), each × 100 and rounded to two decimals. On the median rows, the median, rounded to one decimal |
| `debt_pct_mfsr`, `total_debt_mfsr` | MF SR debt file, sheet `zoznam1`: column m (debt as % of the previous year's current revenue) and column k (total debt). 2019 to 2023 |
| `development_levy_mfsr` | MF SR development levy file, `Skutočnosť k 31.12.` on the year's `12YYYY` sheet; 0 where the town is not in the file. 2019 to 2023 |
| `current_expenditure_mfsr` | Current expenditure from MF SR's `vysledky-hospodarenia-obci-a-miest-sr` file. 2019 to 2023 |
| `bank_loans_mfsr`, `interest_650_mfsr`, `principal_820_mfsr`, `debt_service_pct_mfsr` | MF SR beside INEKO's `bank_loans`, `interest_650`, `principal_820` and `debt_service_pct_ineko`, from `mfsr-samosprava.json` (Sources 2); set only where MF SR has a value, 2019 to 2023 |
| `current_revenue_pc`, `current_expenditure_pc`, `current_exp_600_pc`, `personnel_610_620_pc`, `wages_610_pc`, `goods_services_630_pc`, `capital_expenditure_pc`, `total_debt_pc`, `tax_revenue_100_pc`, `local_taxes_120_130_pc`, `development_levy_133015_pc`, `capital_income_230_pc` | The column without `_pc` divided by `population`, rounded to 0.1 €. On the median rows, the median of the peers' values |
| `obec_wages_610`, `obec_insurance_620`, `obec_goods_services_630`, `obec_current_transfers_640_incl_schools`, `obec_capital_exp_700` | Senec only, 2019 to 2024: the town as one accounting unit, without its rozpočtové and príspevkové organizácie (Caveats). The actual (`skutočnosť`) of EK 610, 620, 630, 640 and 700 in the town's budget tables (`extract_budget_tables.py`); their 640 includes the current transfers to the town's schools. The Senec 2025 row takes 610, 620 and 630 from Záverečný účet 2025 instead (next row) |
| `obec_current_transfers_640_excl_schools`, `obec_interest_650` | Senec 2025 only: 640 and 650 from the text part of Záverečný účet 2025 on the town's own current expenditure (`extract_zu.py`), which also gives the row's 610, 620 and 630. That 640 is 3.8 M €, against 23.3 M € in the budget tables' 640 for 2024, which includes the schools |
| `obec_personnel_610_620`, `obec_personnel_610_620_pc`, `obec_wages_610_pc`, `obec_goods_services_630_pc` | Senec only: `obec_personnel_610_620` is `obec_wages_610` + `obec_insurance_620`; the three `_pc` columns are it, `obec_wages_610` and `obec_goods_services_630` divided by `population`, rounded to 0.1 € |
| `debt_pct_zu` | Senec only, 2020 to 2025: the debt ratio from the záverečný účet (Formulas) |
| `msu_wages_tarif_priplatky` | Senec only: "tarifný plat a príplatky zamestnancov mesta" (basic pay and supplements of the town's employees) as quoted in the záverečný účet (Caveats) |
| `scr_dotacia_from_city` | Senec only: the town's current subsidy to SCR that year, from the záverečný účet; the same figure as `dotacia_od_mesta_bezna` in `scr-senec.csv` |
| `current_revenue_pc_n`, `current_expenditure_pc_n`, `current_exp_600_pc_n`, `personnel_610_620_pc_n`, `wages_610_pc_n`, `goods_services_630_pc_n`, `capital_expenditure_pc_n`, `total_debt_pc_n`, `tax_revenue_100_pc_n`, `local_taxes_120_130_pc_n`, `development_levy_133015_pc_n`, `capital_income_230_pc_n`, `obec_personnel_610_620_pc_n`, `obec_wages_610_pc_n`, `obec_goods_services_630_pc_n`, `debt_pct_current_revenue_ineko_n`, `debt_service_pct_ineko_n`, `current_balance_pct_ineko_n`, `population_n` | Median rows only: how many of the seven peers had a value for the column without `_n`. The three `obec_*_pc_n` are always 0, because the peers have no `obec_*` values |
| `xcheck_ineko_population`, `xcheck_ineko_current_revenue`, `xcheck_ineko_current_expenditure`, `xcheck_ineko_current_exp_600`, `xcheck_ineko_capital_revenue`, `xcheck_ineko_capital_expenditure`, `xcheck_ineko_wages_610`, `xcheck_ineko_insurance_620`, `xcheck_ineko_personnel_610_620`, `xcheck_ineko_goods_services_630`, `xcheck_ineko_current_transfers_640`, `xcheck_ineko_total_debt`, `xcheck_ineko_bank_loans`, `xcheck_ineko_development_levy_133015`, `xcheck_ineko_property_tax_120`, `xcheck_ineko_income_tax_110`, `xcheck_ineko_capital_income_230`, `xcheck_ineko_debt_pct_current_revenue`, `xcheck_ineko_debt_service_pct`, `xcheck_ineko_current_balance_pct`, `xcheck_ineko_current_revenue_pc`, `xcheck_ineko_current_expenditure_pc`, `xcheck_ineko_current_exp_600_pc`, `xcheck_ineko_personnel_610_620_pc`, `xcheck_ineko_goods_services_630_pc`, `xcheck_ineko_capital_expenditure_pc`, `xcheck_ineko_total_debt_pc` | Senec 2025 row only: INEKO's 2025 figures for Senec, beside the záverečný účet figures in the other columns. Each means the same as the column without `xcheck_ineko_`; the three ratios also drop the `_ineko` suffix (`xcheck_ineko_debt_service_pct` is INEKO's `debt_service_pct_ineko`) |
| `last_update`, `source_url` | The date the row last changed (Formulas) and the page or document its main figures come from (Caveats) |

The Senec 2025 row comes from Záverečný účet 2025 instead of INEKO: `current_revenue`, `current_expenditure`, `capital_revenue` and `capital_expenditure` from its bilancia; `total_debt` (the "upravená" debt), `bank_loans` (principal left on bank loans), `development_levy_133015`, `property_tax_120` and `income_tax_110` from its text; `capital_income_230`, `sale_land_233`, `sale_capital_assets_231` and `capital_grants_320` set in `build_financie.py` to the document's figures (land sales 335 914.12 €, no other sales of capital assets, capital grants 2 682 434.97 €). Its other INEKO columns are empty.

## Sources

1. INEKO, hospodarenieobci.sk (`https://www.hospodarenieobci.sk/profil/samosprava/<kód obce>/<rok>`; time series via POST `/include/ajax/load_row_details.php` with `category=health|economy`, `indicator=<id>|(1)eco.<EK>|(2)eco.<EK>`, `object=<kód obce>`). INEKO republishes MF SR data (FIN 1-12, FIN 5-04, súvaha). Health inputs (311–314, 331, 341 …) are the town's FIN 1-12 *including its rozpočtové organizácie*; the economic-classification views `(1)eco.*` / `(2)eco.*` also cover príspevkové organizácie (MsKS, ŠJ) and are therefore ~5 % higher than input 313 for Senec. Available up to 2025 for all 8 towns (2025 appeared after the 16 Sep 2026 build; checked 10 Oct 2026). Obec codes: Senec 508217, Pezinok 508179, Malacky 508063, Šamorín 501905, Stupava 508233, Modra 508101, Dunajská Streda 501433, Galanta 503665.
2. MF SR open data, opendata.mfsr.sk (download links `/opendata/download/<dataset>/<n>`, served as `application/octet-stream`, real filename in `Content-Disposition`). Licence CC BY 4.0 (https://opendata.mfsr.sk/page/licence, checked 22 Oct 2026), credited in the ministry's own words: Zdroj údajov: Ministerstvo financií SR - https://opendata.mfsr.sk/
   * `vybrane-udaje-z-vykazu-fin-1-12-za-obce-a-ich-rozpoctove-organizacie` (`PaV-obci-podla-EK-2015…2020.xlsx`): revenue by EK (incl. 133015 daň za rozvoj), current expenditure by function (not by 610/620/630), capital expenditure by source. Only to 2020.
   * `dlh-a-dlhova-sluzba-miest-a-obci-sr-k-ultimu-roka` (2017–2023): sheets `zoznam1` (dlh, col k = celková suma dlhu, l = bežné príjmy predch. roka, m = %) and `zoznam2` (dlhová služba).
   * `prijem-obci-a-miest-sr-z-dane-za-rozvoj` (2017–2023): quarterly sheets; we use `12YYYY`, column `Skutočnosť k 31.12.`.
   * `vysledky-hospodarenia-obci-a-miest-sr` (2018–2023): príjmy/výdavky incl. bežné a kapitálové výdavky.
   None of the MF SR municipal datasets contains 610/620/630 per municipality, so personnel and goods & services come from INEKO.
   Checked 10 Oct 2026: still the same 7 / 7 / 6 / 6 files, nothing for 2024 or 2025, so the `*_mfsr` columns stay empty after 2023.
   Since 15 Oct 2026 `scripts/fetch_mfsr_samosprava.py` reads the debt and levy files of category 212 into `mfsr-samosprava.json` (every column, 2017–2023, the eight towns), and `build_financie.py` takes four more columns from it where the series overlap INEKO's: `bank_loans_mfsr` (zoznam1 „Bankové úvery (BU)“), `interest_650_mfsr` and `principal_820_mfsr` (zoznam2, categories 650 and 820), `debt_service_pct_mfsr` (zoznam2 „pomer dlhovej služby“). They are set only where MF SR has a value, so the other rows and every existing number are unchanged; the 40 town rows 2019–2023 got `last_update` 2026-10-15 for the new columns. The other datasets of category 212 (súvaha, FIN 5-04, FIN 3-04, stručná bilancia) publish national totals only (`mfsr-samosprava-README.md`).
3. Mesto Senec, senec.sk page *Rozpočet mesta* (`https://www.senec.sk/urad/rozpocet/`; WP REST `posts?search=` returns nothing because search runs through ElasticPress; the `/wp/v2/media?search=rozpočet` endpoint and the page HTML list the PDFs). Documents used: Záverečný účet 2018–2025 (ZÚ 2025 approved 24.6.2026), Rozpočet 2019, 2020, 2021, 2022, 2023-2025, 2024-2026, 2025-2027, 2026-2028, Rozpočet 2026 – 2. zmena (24.6.2026; total 66 663 711 €), Konsolidovaná výročná správa 2024.
4. Register účtovných závierok REST API `https://www.registeruz.sk/cruz-public/api/` (`uctovne-jednotky?ico=`, `uctovna-jednotka?id=`, `uctovna-zavierka?id=`, `uctovny-vykaz?id=`, `sablona?id=699`), attachments at `/domain/financialreport/attachment/<id>`.
5. CRZ `https://www.crz.gov.sk/2171273-sk/centralny-register-zmluv/?art_ico=<IČO dodávateľa>&art_ico1=<IČO objednávateľa>&page=n` (pages are numbered from 0, and `page=0` is the page you get with no `page` parameter; the filter needs the hidden `ID=2171273` field; the bare `/?search=` form ignores filters).

## Formulas

* `personnel_610_620 = wages_610 + insurance_620` (INEKO `(2)eco.610`, `(2)eco.620`).
* `current_exp_600 = 610+620+630+640+650` (INEKO `(2)eco.600`, verified for Senec 2024).
* `local_taxes_120_130 = dane z majetku (120) + dane za tovary a služby (130)`; `income_tax_110` is the shared personal income tax. "Own tax revenue" in the atlas = `tax_revenue_100` (all) and `local_taxes_120_130` (locally set).
* `*_pc = value / population`, population = INEKO 341 "Počet obyvateľov k začiatku roka" (ŠÚ SR). Senec 2025 uses 20 234 (ŠÚ SR figure for 31.12.2024 quoted in KVS 2024; the city's own register says 19 937 at 31.12.2025).
* `debt_pct_current_revenue_ineko` = INEKO 211 = celkový dlh podľa § 17 ods. 7 zák. 583/2004 / skutočné bežné príjmy predchádzajúceho roka × 100. `debt_pct_mfsr` = MF SR column m (same definition). `debt_pct_zu` (Senec only) = "upravená celková suma dlhu" / "bežné príjmy obce a RO predch. roka" from the ZÚ (2020: figure quoted in the ZÚ text).
* `PEER_MEDIAN` = median over the 7 peer towns (Senec excluded) of each per-capita / ratio column for that year; `<col>_n` gives how many towns had a value.
* Growth in `financie.json → summary_2019_vs_2024_2025` = (later / earlier − 1) × 100. Each `*_2019_2024` key has a `*_2019_2025` sibling right after it (`senec_current_exp_600_pc`, `peer_median_current_exp_600_pc`, `peer_median_current_expenditure_313_pc`, `senec_personnel_610_620_pc_consolidated`, `peer_median_personnel_610_620_pc`, `senec_goods_630_pc`, `peer_median_goods_630_pc`); the debt keys get `peer_median_debt_pct_2019_2024_2025`, `peer_median_debt_pc_2019_2024_2025`, `senec_debt_pct_ineko_2019_2024_2025` and `senec_debt_pc_ineko_2019_2024_2025` ([2019, 2024, 2025]). In the new Senec keys the 2025 value is the consolidated INEKO figure from `xcheck_ineko_*`, so it compares like with like against the peer median; `senec_current_expenditure_313_pc_2019_2025` (ZÚ) was already there and is unchanged. The old keys are kept as they were.
* `last_update` (each row and `_meta`): a row keeps the date from the previous `financie.json` while it is unchanged (the 16 Sep rows carry that build's `built`, 2026-09-16); new or changed rows get the build date. `_meta.built` is still the build date.
* SCR: `dotacia_pct_vynosov = bežná dotácia od mesta / výnosy z hospodárskej činnosti × 100`; `osobne_naklady_na_zamestnanca = osobné náklady / priemerný prepočítaný počet zamestnancov`.

## Caveats

* **Consolidation levels differ.** INEKO 610/620/630 are for the town *plus* its schools and other organisations (education is ~48 % of Senec's spending; school wages dominate 610). The Senec-only `obec_*` columns (from the city's budget tables "Ukazovateľ (hlavná kategória EK)" and the ZÚ text) are for the town office as a single accounting unit (MsÚ, MsP, matrika, school office, social services, non-legal-entity school staff), with transfers to schools in 640. `msu_wages_tarif_priplatky` is narrower still: "tarifný plat a príplatky zamestnancov mesta" quoted in the ZÚ under Všeobecné verejné služby. Do not mix these series when computing growth.
* `source_url` on every row since 2026-10-10: the town's INEKO profile for that year (`https://www.hospodarenieobci.sk/profil/samosprava/<obec>/<year>`), the záverečný účet PDF for Senec 2025, INEKO's site for the computed `PEER_MEDIAN` rows. Adding it did not change any row's `last_update`.
* 2025 for all 8 towns since 2026-10-10: INEKO now publishes 2025 for every town (population 341 and all health inputs, 600/610/620/630/640, debt 331/211 present for all). 2025 gaps, as in earlier years where INEKO returns no value: 231 for Senec, Pezinok, Šamorín, Stupava, Modra; 320 for Senec, Šamorín, Dunajská Streda; 720 for Pezinok, Šamorín, Stupava; 500 for Pezinok; Malacky and Galanta complete. MF SR has nothing after 2023. The Senec 2025 row keeps its ZÚ sourcing; INEKO 2025 for Senec is in `xcheck_ineko_*` and agrees with the ZÚ on every overlapping figure (bežné príjmy/výdavky, kapitálové príjmy/výdavky to the euro; dlh 3 019 970 €, úvery 2 701 738 €, daň za rozvoj, daň z nehnuteľností, podielová daň, 230 exactly; dlh/bežné príjmy 7.73 % = `debt_pct_zu`; population 20 234). The ZÚ row has no consolidated 600/610/620/630, so Senec's 2025 per-capita comparisons with the peers use `xcheck_ineko_*`.
* `senec_budget_tables_obec_level.rows.ostatne_miestne_dane_130`, Rozpočet 2019: the row label wraps ("… sankčný úrok / (160)") and
  `extract_budget_tables.py` reads that "160" as a number, so 2016 actual, 2018 approved, 2018 expected and 2019 plan are shifted one column
  (published 1 126 639.86 / 1 263 540 / 1 527 600 / 1 305 100; the document says 1 105 447 / 1 296 800 / 1 263 540 / 1 527 600). The regression
  reproduces it as published; the row is not used in the CSV. Not fixed.
* The city's own 2018 table swaps 630 and 640 (630 = 10.4 M €, 640 = 3.7 M €); kept as published, flagged here.
* `capital_income_230` (INEKO) = own capital income (asset/land sales 231/233 + 239), *excluding* capital grants (320). Senec's `capital_revenue` in the ZÚ bilancia (e.g. 3.02 M € in 2025) includes grants (2.68 M € in 2025); land sales were 335 914 €.
* Development levy: INEKO `(1)eco.133015` equals the MF SR file and the ZÚ for every checked year. Zero/blank = the town did not collect the levy.
* Bank loans: INEKO's `bank_loans` and MF SR's `bank_loans_mfsr` agree except in 2020–2022, when INEKO's figure also includes the repayable financial assistance from public-sector bodies (MF SR column „Návratné finančné výpomoci prijaté od subjektov VS“, `repayable_assistance` in `mfsr-samosprava`). For Senec the difference is 559 548 € in each of those years, which is that column. Interest (650), principal (820) and the debt-service ratio agree to the cent where both have a value, except Stupava 2019–2023, where INEKO's 650 and 820 are higher than the MF SR file's (2023: 52 766,21 € against 51 624,93 € and 1 574 192,76 € against 1 533 920 €; the cause is not stated in either source), and Galanta 2022, where the MF SR file gives a debt-service ratio of 13,65 % against INEKO's 1,07 % (the same file shows Galanta's debt at 227 %, see below).
* Debt: INEKO and MF SR agree except Malacky 2019 (INEKO 36.5 % vs MF SR 15.4 %) and Galanta 2022 (MF SR shows 227 %, an evident artefact of the MF SR file; INEKO gives 21.9 %). INEKO revised Galanta 2024 between the 16 Sep and 10 Oct harvests: 331/332 8 204 637 → 5 138 897 €, 211 38.18 → 23.91 % (`total_debt_pc` 534.9 → 335.0); in the published data since 2026-10-10. No peer median moved. Senec's ZÚ excludes Envirofond loans from the statutory debt figure (775 473 € at end-2025); `total_debt` for Senec 2025 is the ZÚ "upravená" figure 3 019 970 € (gross 3 795 442 €).
* MsÚ headcount is not stated in any budget document or ZÚ; only Mestská polícia staffing (1 náčelník, 1 zástupca, 27 príslušníkov, 1 admin, per Rozpočet 2026) and a hint that the training programme covers ~50 employees.
* Transfers to schools: the ZÚ gives total education spending (`vzdelavanie_vydavky`, 2025: 20.65 M €, of which 20.48 M € current) and the budget tables give 640 "v tom BT školy" (2024: 23.3 M €); a clean "transfer to RO schools" line is not published separately.
* SCR: no breakdown of entrance fees (vstupné); all operating revenue sits in 602 "tržby z predaja služieb". The notes only state rental income (~253 tis. € in 2025). Subsidies from the city (8 000 € in 2018 → 30 000 € in 2024–2025, plus a 35 000 € capital transfer in 2019) are earmarked (bioremediation/cleaning of Slnečné jazerá, bungalow renovation, meteo station). The city also leases land/premises to SCR (CRZ: 14/2009/ost ~5.2 k€/yr, 1/2011/NP ~4.2 k€/yr, 10/2010/poz ~2.4 k€/yr until 2025) and since 2025 buys parking-related services from SCR (016/25/02, 8 000 €) and leases parking machines (017/25/07).
* CRZ covers Mesto Senec and SCR only from 2022 (both publish there since then); earlier contracts are on senec.sk / SCR's own site and were not harvested.
* CRZ refresh 2026-10-10: `harvest_crz.py` used to start at `page=1` and so dropped the first result page (the newest 20 rows) of every query. Fixed and re-run; `build_scr.py --crz-only` added 2 contracts, 70 → 72: CRZ 12814792 *bioremedácia SJ 035/26/02*, 30 000 €, SCR → Mesto, published 17.9.2026, and CRZ 12825380 *Zmluva o poskytnutí dotácie č. 035/26/02*, Mesto → SCR, published 21.9.2026 with 0 € in CRZ (both signed 17.9.2026). The 70 earlier rows are unchanged and keep `last_update` 2026-09-16; the new ones carry 2026-10-10. `crz_scr_contract_counts_by_year_all_counterparties` went from 2024: 248, 2025: 254, 2026: 188 to 251 / 257 / 230, because the dropped first pages of the two small SCR queries reached back into 2024–2025. The financial series, `city_subsidy_by_year` and `scr-senec.csv` were not rebuilt and are byte-identical. Known limits that do not affect the SCR pairs (the four SCR-side queries run to their last page): `mesto_as_objednavatel` stops at the script's 60-page cap, and CRZ serves no rows past page 49 for `mesto_as_dodavatel`.
* Old INEKO ranking view of SCR (2024 result −30.5 tis. €) disagrees with RÚZ (+809 €); RÚZ is used.

## Reproduce

Every script lives in `scripts/` and resolves its own paths: raw data in `data/atlas/raw/`, output in `data/atlas/`. They run from any
working directory, and httpx uses its default certificate verification. From the repo root:

```
.venv/bin/python scripts/fetch_finance_raw.py       # -> data/atlas/raw/senec_budget/*.pdf,*.txt and data/atlas/raw/mfsr/*.xls[x]
.venv/bin/python scripts/harvest_ineko.py           # -> data/atlas/raw/ineko_series.json
.venv/bin/python scripts/parse_mfsr_peers.py        # -> data/atlas/raw/mfsr_peers.json (needs data/atlas/raw/mfsr/*.xls[x])
.venv/bin/python scripts/extract_zu.py              # -> data/atlas/raw/senec_zu_extract.json (needs data/atlas/raw/senec_budget/*.txt)
.venv/bin/python scripts/extract_budget_tables.py   # -> data/atlas/raw/senec_budget_tables.json (same)
.venv/bin/python scripts/harvest_ruz_scr.py         # -> data/atlas/raw/ruz_scr/, data/atlas/raw/ruz_scr_parsed.json
.venv/bin/python scripts/harvest_crz.py             # -> data/atlas/raw/crz_contracts.json
.venv/bin/python scripts/build_financie.py          # -> data/atlas/financie-benchmark.csv, data/atlas/financie.json
.venv/bin/python scripts/build_scr.py               # -> data/atlas/scr-senec.json, scr-senec.csv, scr-senec-crz-zmluvy.csv
.venv/bin/python scripts/build_scr.py --crz-only    # contracts and yearly counts only; series and scr-senec.csv untouched
```

* `mfsr/` and `senec_budget/` have to be in `data/atlas/raw/` before the two parsers run: the files are listed under Sources 2 and 3 (URLs also in
  `extract_zu.URLS` and `extract_budget_tables.DOCS`), and the extractors' regexes were written against `pdftotext -layout` (poppler) text.
  `scripts/fetch_finance_raw.py` (added 10 Oct 2026) downloads them into those two folders and writes the `.txt` next to each PDF: `pdftotext -layout`
  when poppler is installed, otherwise a pdftotext-like layout built from pdfplumber characters (`layout_text`). Existing files are kept; `--reconvert`
  redoes the text, `--force` downloads again. pdfplumber's own `extract_text()` (with or without `layout=True`) is not a substitute: it runs
  adjacent table columns into one number.
* `parse_mfsr_peers.py` needs `xlrd` for `Dlh-a-dlhova-sluzba-obce-2017.xls`; it is not in `requirements.txt`.
* `parse_mfsr_peers.py` globs relative to `data/atlas/raw/`, so `_meta.files` (published in `financie.json → mfsr_cross_check`) keeps the
  `mfsr/<file>` names.
* `ruz_scr_parsed.json → prilohy[].local` is now relative to the repo root (`data/atlas/raw/ruz_scr/…`). It does not reach `scr-senec.json`.
* `build_scr.py` keeps a record's `last_update` from the previous `scr-senec.json` when the record is unchanged.

Check, 2026-10-10: paths and TLS were fixed in `harvest_ineko.py`, `harvest_ruz_scr.py`, `extract_zu.py`, `extract_budget_tables.py`,
`parse_mfsr_peers.py` and `build_financie.py`; `harvest_crz.py` and `build_scr.py` had been fixed earlier the same day. Fresh `harvest_ineko.py`
(312 series, no errors) and `harvest_ruz_scr.py` runs went to `data/atlas/raw/`. Both builders were then run in a scratch copy of the tree, with
`senec_zu_extract.json`, `senec_budget_tables.json` and `mfsr_peers.json` restored from the copies embedded in `financie.json`.
`scr-senec.json`, `scr-senec.csv` and `scr-senec-crz-zmluvy.csv` came out byte-identical. `financie.json` / `financie-benchmark.csv` differ only
in `_meta.built` and Galanta 2024, which INEKO has revised since 16 Sep: `total_debt` and `bank_loans` 8 204 637 → 5 138 897 €,
`debt_pct_current_revenue_ineko` 38.18 → 23.91, `total_debt_pc` 534.9 → 335.0. No peer median moves. The published files were not rebuilt in
that check (they were later the same day, next paragraph). At that point `extract_zu.py`, `extract_budget_tables.py` and `parse_mfsr_peers.py` were not run against real
inputs (no `mfsr/` or `senec_budget/` locally, no poppler on this Mac).

Rebuild and 2025 extension, 2026-10-10: `fetch_finance_raw.py` fetched the 16 PDFs and 26 MF SR files into `data/atlas/raw/`; with no poppler,
the text came from its pdfplumber layout fallback. `parse_mfsr_peers.py`, `extract_zu.py` and `extract_budget_tables.py` then reproduced
`mfsr_cross_check`, `senec_zaverecne_ucty_extract` and `senec_budget_tables_obec_level` exactly, and `build_financie.py` with the year range
unchanged reproduced both published files except `_meta.built` and the Galanta 2024 revision. The builder was then extended (peer and median
2025 rows, `xcheck_ineko_*`, the 2019→2025 summary keys, `last_update`) and the published files rebuilt; a second run is byte-identical.
2019 → 2025 per inhabitant, Senec 2025 from INEKO: current expenditure (600) Senec 1 066.3 → 1 895.0 € (+77.7 %), peer median 962.5 → 1 519.0 €
(+57.8 %); personnel 610+620 Senec 623.3 → 1 137.2 € (+82.4 %), median 541.2 → 881.2 € (+62.8 %); goods & services 630 Senec 303.1 → 539.4 €
(+78.0 %), median 287.7 → 464.5 € (+61.5 %); current expenditure (313) median 846.2 → 1 392.2 € (+64.5 %) vs Senec 1 012.6 → 1 773.0 € (+75.1 %).
Debt 2025: Senec 7.73 % of prior-year current revenue and 149.3 €/inhabitant, median 10.2 % and 131.2 € (2024: 9.82 % / 167.5 € vs 8.8 % / 111.1 €).

Check, 2026-11-05: `harvest_ineko.py` run again into a scratch file (312 series, no errors) returned every value of the stored
`raw/ineko_series.json` unchanged; INEKO's last year is still 2025. `build_financie.py` on those inputs, run in a scratch copy of the
tree, reproduced `financie-benchmark.csv` byte for byte and `financie.json` except `_meta.built`, so the published files were not
rewritten.

## License

Published by Som Senec under the Creative Commons Attribution 4.0 International licence (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/. You may use it for any purpose, commercial use included, if you credit "Som Senec, somsenec.sk". The source documents that each record links to keep their own terms.
