3 Commits

2 changed files with 6 additions and 3 deletions

4
app.py
View File

@@ -14,7 +14,7 @@ import threading
app = Flask(__name__, static_folder='static')
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY', 'dev')
app.config['ALLOWED_IP_RANGES'] = os.getenv('ALLOWED_IP_RANGES', '192.168.0.0/16,10.0.0.0/8').split(',')
app.config['VERSION'] = '1.2.16'
app.config['VERSION'] = '1.2.17'
app.config['DATABASE'] = 'data/customers.db'
app.config['DATABASE_TIMEOUT'] = 20
app.config['DATABASE_POOL_SIZE'] = 5
@@ -193,7 +193,7 @@ def login():
if request.method == 'POST':
password = request.form.get('password')
if password == STATIC_PASSWORD:
if password == os.environ.get('LOGIN_PASSWORD'):
session['logged_in'] = True
logger.info("Erfolgreicher Login")
return redirect(url_for('index'))

View File

@@ -336,7 +336,10 @@ function displayResults(results) {
function clearInput(inputId) {
document.getElementById(inputId).value = '';
searchCustomers();
document.getElementById('results').innerHTML = '';
document.getElementById('result-count').textContent = '';
document.getElementById('exportButton').style.display = 'none';
lastResults = [];
}
async function searchCustomers() {