slight changes
Release Inventarsystem / release-docker (push) Successful in 2m15s

This commit is contained in:
2026-08-23 17:28:43 +02:00
parent 5388562b46
commit 2f2c71d0a4
+4 -3
View File
@@ -3641,6 +3641,7 @@ def test_mahnungen():
return val
current_time = datetime.datetime.now(ZoneInfo("Europe/Berlin"))
current_time_naive = current_time.replace(tzinfo=None)
client = None
try:
@@ -3722,8 +3723,8 @@ def test_mahnungen():
or ''
)
due_date = appt.get('DueDate', current_time)
current_time_naive = current_time.replace(tzinfo=None)
# KORREKTUR: 'record' statt 'appt'
due_date = record.get('DueDate', current_time)
due_date_naive = due_date.replace(tzinfo=None) if due_date else current_time_naive
days_overdue = (current_time_naive - due_date_naive).days
is_blocked = user_block_map.get(raw_user, False)
@@ -3733,7 +3734,7 @@ def test_mahnungen():
'item_name': item_name,
'user': display_user,
'klasse': user_class,
'due_date': fmt_dt(due_date_obj),
'due_date': fmt_dt(due_date), # KORREKTUR: 'due_date' statt 'due_date_obj'
'days_overdue': days_overdue,
'mahnstufe': record.get('Mahnstufe', 0),
'is_blocked': is_blocked