From e6f43ca10a9776c9c27131d7f14846afe686889e Mon Sep 17 00:00:00 2001 From: elpatron Date: Mon, 17 Mar 2025 22:15:01 +0100 Subject: [PATCH] =?UTF-8?q?Dokumentation:=20Aktualisierung=20der=20README?= =?UTF-8?q?=20und=20des=20Changelogs=20f=C3=BCr=20Version=201.0.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- templates/index.html | 33 ++++++--------------------------- 2 files changed, 7 insertions(+), 28 deletions(-) diff --git a/app.py b/app.py index af439ab..9df9ba8 100644 --- a/app.py +++ b/app.py @@ -13,7 +13,7 @@ logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) # Version der Anwendung -VERSION = "1.0.5" +VERSION = "1.0.2" # Pfad zur CSV-Datei CSV_FILE = "data/customers.csv" diff --git a/templates/index.html b/templates/index.html index 98bb742..633aaaa 100644 --- a/templates/index.html +++ b/templates/index.html @@ -139,18 +139,6 @@ margin-left: 4px; font-size: 1.2em; } - .weather-info { - display: inline-flex; - align-items: center; - margin-left: 10px; - font-size: 0.9em; - color: #666; - } - .weather-info img { - width: 24px; - height: 24px; - margin-right: 4px; - } @@ -246,10 +234,7 @@ function createCustomerLink(customerNumber) { if (!customerNumber) return 'N/A'; - return ` - ${customerNumber} - `; + return `${customerNumber}`; } function showCopyFeedback() { @@ -326,22 +311,16 @@ data.results.forEach(customer => { const card = document.createElement('div'); card.className = 'card mb-3'; + const customerLink = createCustomerLink(customer.Nummer); + console.log('Customer:', customer); // Debug-Ausgabe + console.log('Customer link:', customerLink); // Debug-Ausgabe card.innerHTML = `
${customer.Vorname} ${customer.Nachname}

- Kundennummer: ${customer.Nummer}
+ Kundennummer: ${customerLink}
Fachrichtung: ${customer.Fachrichtung || 'N/A'}
- Adresse: ${createAddressLink(customer.Strasse, customer.PLZ, customer.Ort)} - ${customer.weather ? ` - - ${customer.weather.description} - ${customer.weather.temperature}°C - - ` : ''} -
+ Adresse: ${createAddressLink(customer.Strasse, customer.PLZ, customer.Ort)}
Telefon: ${createPhoneLink(customer.Tel)}
E-Mail: ${createEmailLink(customer.mail)}