Dokumentation: Aktualisierung der README und des Changelogs für Version 1.0.5
This commit is contained in:
2
app.py
2
app.py
@@ -13,7 +13,7 @@ logging.basicConfig(level=logging.DEBUG)
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
# Version der Anwendung
|
# Version der Anwendung
|
||||||
VERSION = "1.0.5"
|
VERSION = "1.0.2"
|
||||||
|
|
||||||
# Pfad zur CSV-Datei
|
# Pfad zur CSV-Datei
|
||||||
CSV_FILE = "data/customers.csv"
|
CSV_FILE = "data/customers.csv"
|
||||||
|
@@ -139,18 +139,6 @@
|
|||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
font-size: 1.2em;
|
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;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -246,10 +234,7 @@
|
|||||||
|
|
||||||
function createCustomerLink(customerNumber) {
|
function createCustomerLink(customerNumber) {
|
||||||
if (!customerNumber) return 'N/A';
|
if (!customerNumber) return 'N/A';
|
||||||
return `<a href="medisw:openkkbefe/P${customerNumber}?NetGrp=4"
|
return `<a href="medisw:openkkbefe/P${customerNumber}?NetGrp=4" class="customer-link">${customerNumber}</a>`;
|
||||||
class="customer-link" target="_blank" rel="noopener noreferrer">
|
|
||||||
${customerNumber}
|
|
||||||
</a>`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function showCopyFeedback() {
|
function showCopyFeedback() {
|
||||||
@@ -326,22 +311,16 @@
|
|||||||
data.results.forEach(customer => {
|
data.results.forEach(customer => {
|
||||||
const card = document.createElement('div');
|
const card = document.createElement('div');
|
||||||
card.className = 'card mb-3';
|
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 = `
|
card.innerHTML = `
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">${customer.Vorname} ${customer.Nachname}</h5>
|
<h5 class="card-title">${customer.Vorname} ${customer.Nachname}</h5>
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
<strong>Kundennummer:</strong> ${customer.Nummer}<br>
|
<strong>Kundennummer:</strong> ${customerLink}<br>
|
||||||
<strong>Fachrichtung:</strong> ${customer.Fachrichtung || 'N/A'}<br>
|
<strong>Fachrichtung:</strong> ${customer.Fachrichtung || 'N/A'}<br>
|
||||||
<strong>Adresse:</strong> ${createAddressLink(customer.Strasse, customer.PLZ, customer.Ort)}
|
<strong>Adresse:</strong> ${createAddressLink(customer.Strasse, customer.PLZ, customer.Ort)}<br>
|
||||||
${customer.weather ? `
|
|
||||||
<span class="weather-info">
|
|
||||||
<img src="http://openweathermap.org/img/wn/${customer.weather.icon}@2x.png"
|
|
||||||
alt="${customer.weather.description}"
|
|
||||||
title="${customer.weather.description}">
|
|
||||||
${customer.weather.temperature}°C
|
|
||||||
</span>
|
|
||||||
` : ''}
|
|
||||||
<br>
|
|
||||||
<strong>Telefon:</strong> ${createPhoneLink(customer.Tel)}<br>
|
<strong>Telefon:</strong> ${createPhoneLink(customer.Tel)}<br>
|
||||||
<strong>E-Mail:</strong> ${createEmailLink(customer.mail)}
|
<strong>E-Mail:</strong> ${createEmailLink(customer.mail)}
|
||||||
</p>
|
</p>
|
||||||
|
Reference in New Issue
Block a user