# projekty-mesta: the town's own register of investment projects

42 projects of Mesto Senec as the town publishes them under *Projekty* on senec.sk: €51.0 m total cost
(35 projects with a cost), €24.7 m in grants, 17 with an ITMS code. Each record links to its project page.

Built by `scripts/build_projekty_mesta.py` from the `project` post type that `scripts/senec_content.py` stores
in `data/senec.db` (WordPress REST API, `https://www.senec.sk/wp-json/wp/v2/project`, payload in
`meta_box`). First published 21 Sep 2026 from a one-off extraction; the builder written on 10 Oct 2026
reproduces that file exactly from the 21 Sep database and was then run on the database refreshed 10 Oct.

## Fields

| Field | From `meta_box` | Meaning |
|---|---|---|
| `id` | post id | Stable id; use as the slug |
| `title`, `url` | title, link | As published (HTML entities decoded) |
| `itms_code` | `code` | ITMS2014+ / ITMS21+ / Plán obnovy code as the town writes it; not always an ITMS code (see `itms-senec-README.md`) |
| `call_code` | `code_call` | Call (výzva) code |
| `specific_goal` | `specific_goal` | Programme objective |
| `status` | `status` | `open`, `in_progress`, `done` |
| `stage` | `status_description` | The leading "N/6" of the town's six-stage progress scale, else null |
| `status_note` | `status_description` | The first 600 characters of the town's progress log |
| `date_from`, `date_to` | same | Project period |
| `cost_eur` | `cost` | Total cost |
| `grant_eur` | `cofinancing` | The CMS calls the field *spolufinancovanie*; in practice it holds the grant (NFP) |
| `finance_source`, `financing_note` | `finance_source`, `financing_description` | Free text as published |
| `contractor` | `implementer` | Free text as published, often with a schedule note |
| `responsible_sections` | `responsible_office_section_id` | Names of the responsible departments (`office_section` posts) |
| `source_url` | link | The project page |
| `topic` | none | Som Senec's topic for the project (`projekty_topics` in `data/taxonomy.json`, set by hand from the title, 21 Oct 2026): one of the twelve categories of životné situácie |
| `last_update` | none | Date the record last changed; unchanged records keep their date |

CSV: same rows, the column order of the first publication, `responsible_sections` joined with "; ".

## Caveats

- **`status_note` is cut at 600 characters.** The town appends progress to the start-of-project text, so late
  entries fall beyond the cut: on 8 Oct 2026 the town updated several projects (e.g. the polyclinic's
  construction log), and none of the change is visible in this field. Read the project page for the full log.
- `grant_eur` vs ITMS: the town's grant figure is consistently 95 % of the expenditure ITMS settled, and for
  two classroom projects the town's "cost" is ITMS's approved grant (`itms-senec-README.md`).
- `meta.by_finance_source` groups by the first phrase of `finance_source`; the town's free text makes some
  groups odd ("266 419", "IROP (2014"). Indicative only.
- Natural persons: four progress notes named a person with an academic title (an architect, project
  managers); those names are masked as `[meno vynechané]` (10 Oct 2026, those four records carry that date).

## Rebuild

```bash
python scripts/senec_content.py --db data/senec.db --only project,office_section
python scripts/build_projekty_mesta.py
```

## 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.
