1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
8e2cbbaadb chore: Minor changes
All checks were successful
Remote Deploy / deploy (push) Successful in 1m18s
2026-03-15 16:34:11 +01:00
eab7ddf30e fix: Set website template language to czech 2026-03-01 16:58:38 +01:00
3 changed files with 40 additions and 5 deletions

37
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,37 @@
# Contributing
Děkuji za váš zájem přispět do tohoto projektu.
Příspěvky jsou vítány, ale **přijímám je pouze e-mailem ve formě `.patch` souborů**.
## Jak přispět
1. Naklonujte repozitář.
2. Vytvořte změny ve vlastní větvi.
3. Vygenerujte patch pomocí `git format-patch`.
Například pro poslední commit:
```bash
git format-patch -1
```
Nebo pro změny vůči main:
```bash
git format-patch origin/main
```
4. Vzniklý .patch soubor pošlete jako přílohu na:
email@jzitnik.dev
# Požadavky na patch
- patch musí být generovaný pomocí git format-patch
- změny musí být jasně popsané v commit message
- jeden patch by měl řešit jednu logickou změnu
- patch musí být aplikovatelný bez konfliktů
# Co se stane potom
- patch zkontroluji
- pokud bude potřeba něco upravit, odpovím e-mailem
- po schválení patch aplikuji do repozitáře

View File

@@ -12,7 +12,7 @@
* GNU General Public License for more details.
*/
import ExcelJS, { Worksheet, Cell } from "exceljs"
import ExcelJS, { Worksheet } from "exceljs"
import fs from "fs"
import parseAbsence, { AbsenceResult } from "../utils/parseAbsence.js"
import parseTeachers from "../utils/parseTeachers.js"
@@ -127,9 +127,6 @@ export default async function parseV1V2(downloadedFilePath: string) {
}
})
// Use an array directly, initialized with nulls or sparse array logic
// The original code used `let final2 = []` but treated it as object `final2[parsedKey] = ...`
// Then `Array.from(final2)` converts it to array.
let final2: (string | null)[] = [];
for (const key of allKeys) {
@@ -140,7 +137,7 @@ export default async function parseV1V2(downloadedFilePath: string) {
try {
const regex = /^úklid\s+(?:\d+\s+)?[A-Za-z]{2}$/;
const cellText = cell.text || "";
// @ts-ignore - fgColor is missing in type definition for some versions or intricate structure
// @ts-ignore
const fgColor = cell.fill?.fgColor;
if (regex.test(cellText.trim()) || cellText.trim().length == 0 || fgColor === undefined) {
d = false;

View File

@@ -10,6 +10,7 @@ buildExpired: false
enableEmoji: true
pygmentsUseClasses: true
mainsections: ["posts", "papermod"]
defaultContentLanguage: "cs"
minify:
disableXML: true