diff --git a/setup.sh b/setup.sh index 8fd69c3..e542858 100644 --- a/setup.sh +++ b/setup.sh @@ -898,13 +898,6 @@ def edit_game(game_id): game.steam_appid = request.form.get('steam_appid', '') game.redeem_date = safe_parse_date(request.form.get('redeem_date', '')) - # Zeitzonen-korrekte Umwandlung - game.redeem_date_local = ( - game.redeem_date.astimezone(local_tz) - if game.redeem_date - else None - ) - # Token-Logik if game.status == 'geschenkt': # Vorhandene Tokens löschen @@ -1918,7 +1911,7 @@ cat < templates/edit_game.html {% block content %}

{{ _('Spiel bearbeiten') }}

- + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} @@ -1932,11 +1925,11 @@ cat < templates/edit_game.html
{% endif %} {% endwith %} - +
- +
@@ -1945,9 +1938,7 @@ cat < templates/edit_game.html
@@ -1955,9 +1946,7 @@ cat < templates/edit_game.html
@@ -1966,69 +1955,34 @@ cat < templates/edit_game.html
- - + +
- -
- - + + +
+
+ + +
+
+ + +
+
+ +
- -
- - -
- - -
- - -
- - -
- - -
-
🔄 {{ _('Externe Daten') }} - - - - - + + Update Data +
{% if game.release_date %} @@ -2037,33 +1991,24 @@ cat < templates/edit_game.html {{ game.release_date|strftime('%d.%m.%Y') }}
{% endif %} - - - - - {% if game.current_price %} -
- {{ _('Now') }} -
- {{ "%.2f"|format(game.current_price) }} € -
+ {% if game.current_price %} +
+ {{ _('Now') }} +
+ {{ "%.2f"|format(game.current_price) }} €
- {% endif %} - {% if game.historical_low %} -
- {{ _('Hist. Low') }} -
- {{ "%.2f"|format(game.historical_low) }} € -
+
+ {% endif %} + {% if game.historical_low %} +
+ {{ _('Hist. Low') }} +
+ {{ "%.2f"|format(game.historical_low) }} €
- {% endif %} - - +
+ {% endif %} {% if game.itad_slug %} - + 🔗 {{ _('View on IsThereAnyDeal') }} {% endif %} @@ -2077,37 +2022,29 @@ cat < templates/edit_game.html
{{ _('Einlöse-Links') }}
- {% for token in game.redeem_tokens if not token.is_expired() %} -
- - -
- - {{ _('Expires at') }}: {{ token.expires.astimezone(local_tz).strftime('%d.%m.%Y %H:%M') }} - - {% else %} -

{{ _('No active redeem links') }}

- {% endfor %} + {% for token in game.redeem_tokens if not token.is_expired() %} +
+ + +
+ + {{ _('Expires at') }}: {{ token.expires.astimezone(local_tz).strftime('%d.%m.%Y %H:%M') }} + + {% else %} +

{{ _('No active redeem links') }}

+ {% endfor %}
{% endif %} - - 🔍 {{ _('View Details') }} - +
@@ -2129,7 +2066,6 @@ document.querySelectorAll('.copy-btn').forEach(btn => { }); }); - {% endblock %} HTML_END