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)}