From 3dff2d90b4435d89f519ade94445ea959083c9b3 Mon Sep 17 00:00:00 2001 From: lelo Date: Mon, 26 Jan 2026 19:05:33 +0000 Subject: [PATCH 1/3] trigger version --- static/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/sw.js b/static/sw.js index 89a568c..f50ec85 100644 --- a/static/sw.js +++ b/static/sw.js @@ -1,4 +1,4 @@ -const CACHE_NAME = 'gottesdienste-app-v1.2'; +const CACHE_NAME = 'gottesdienste-app-v1.3'; const ASSETS = [ '/', '/static/app.css', From ddb1ef4d3d3a397aebf58d19e0fad804bc0c530d Mon Sep 17 00:00:00 2001 From: lelo Date: Tue, 27 Jan 2026 18:50:18 +0000 Subject: [PATCH 2/3] fix icon wrap --- static/app.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/app.css b/static/app.css index c25e1d0..3fae975 100644 --- a/static/app.css +++ b/static/app.css @@ -1338,6 +1338,6 @@ footer .audio-player-container { } .file-access-actions { - flex-wrap: nowrap; - white-space: nowrap; + flex-wrap: wrap; + align-content: flex-start; } From 45c50d68a7f9e4bf36c738ab7a8a2617700f15b7 Mon Sep 17 00:00:00 2001 From: lelo Date: Wed, 28 Jan 2026 10:44:23 +0000 Subject: [PATCH 3/3] fix transcript in search --- search.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/search.py b/search.py index 3be553e..6afefc0 100644 --- a/search.py +++ b/search.py @@ -1,3 +1,4 @@ +import os import sqlite3 from flask import Flask, render_template, request, request, jsonify, session import random @@ -123,8 +124,22 @@ def searchcommand(): transcript.lower().count(w.lower()) for w in words ) record.pop('transcript', None) - record['fulltext_url'] = f"/media/{quote(record.get('relative_path', ''), safe='/')}" - record['fulltext_type'] = 'sng' if (record.get('filetype') or '').lower() == '.sng' else 'transcript' + + filetype = (record.get('filetype') or '').lower() + if filetype == '.sng': + record['fulltext_type'] = 'sng' + record['fulltext_url'] = f"/media/{quote(record.get('relative_path', ''), safe='/')}" + else: + record['fulltext_type'] = 'transcript' + relative_path = record.get('relative_path', '') + filename = record.get('filename', '') + name_root = os.path.splitext(filename)[0] if filename else os.path.splitext(os.path.basename(relative_path))[0] + parent = os.path.dirname(relative_path) + if parent: + transcript_rel_path = f"{parent}/Transkription/{name_root}.md" + else: + transcript_rel_path = f"Transkription/{name_root}.md" + record['fulltext_url'] = f"/transcript/{quote(transcript_rel_path, safe='/')}" # convert date to TT.MM.YYYY format if record.get('performance_date'): try: