fix: triodion section data path (01.json not 01/full.json)

This commit is contained in:
catarrh committed 2026-08-02 02:31:07 +03:00
1 parent 672af4b5fb
commit 0b20bb77ad
1 file changed
+3 -1
+3 -1
View File
@@ -260,7 +260,9 @@ export class PrayerView {
try { try {
// Paraclete ids are t{tone}-{day}; others map directly // Paraclete ids are t{tone}-{day}; others map directly
let dataPath = `/data/shared/${this.collection}/${id}/full.json`; let dataPath = `/data/shared/${this.collection}/${id}/full.json`;
if (this.collection === 'paraclete') { if (this.collection === 'triodion') {
dataPath = `/data/shared/triodion/${id}.json`;
} else if (this.collection === 'paraclete') {
const m = id.match(/^t(\d)-(\w+)$/); const m = id.match(/^t(\d)-(\w+)$/);
if (!m) { if (!m) {
contentEl.innerHTML = `<p class="text-navy-light">${this.t.prayer.notFound}</p>`; contentEl.innerHTML = `<p class="text-navy-light">${this.t.prayer.notFound}</p>`;