From cb01f1ec604247bf23b41b57caebd65b3dce6c25 Mon Sep 17 00:00:00 2001 From: nocci Date: Sun, 25 May 2025 12:32:57 +0200 Subject: [PATCH 1/6] copy key from edit_game.html --- setup.sh | 8 +++++++- steam-gift-manager/templates/edit_game.html | 9 +++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 8320c16..e068565 100644 --- a/setup.sh +++ b/setup.sh @@ -2090,9 +2090,15 @@ cat < templates/edit_game.html {% endfor %} +
- +
+ + +
diff --git a/steam-gift-manager/templates/edit_game.html b/steam-gift-manager/templates/edit_game.html index e33e108..1316c38 100644 --- a/steam-gift-manager/templates/edit_game.html +++ b/steam-gift-manager/templates/edit_game.html @@ -3,7 +3,7 @@

{{ _('Spiel bearbeiten') }}

- + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
@@ -66,7 +66,12 @@
- +
+ + +
From 8ac203a3b5c00c9258c564ead9c1be92569c5c04 Mon Sep 17 00:00:00 2001 From: nocci Date: Sun, 25 May 2025 15:25:34 +0200 Subject: [PATCH 2/6] small fix in edit_game.html --- steam-gift-manager/templates/edit_game.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/steam-gift-manager/templates/edit_game.html b/steam-gift-manager/templates/edit_game.html index 1316c38..8e28040 100644 --- a/steam-gift-manager/templates/edit_game.html +++ b/steam-gift-manager/templates/edit_game.html @@ -97,6 +97,7 @@
+
@@ -135,7 +136,7 @@
- + {% if game.status == 'geschenkt' %}
@@ -185,6 +186,5 @@ }); }); + {% endblock %} - - From c9ee2925a23a6c982bf7b0d75ea15209878dcb80 Mon Sep 17 00:00:00 2001 From: nocci Date: Sun, 25 May 2025 15:26:34 +0200 Subject: [PATCH 3/6] cleanup --- setup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index e068565..83ca989 100644 --- a/setup.sh +++ b/setup.sh @@ -2029,7 +2029,7 @@ cat < templates/edit_game.html

{{ _('Spiel bearbeiten') }}

- + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
@@ -2090,7 +2090,6 @@ cat < templates/edit_game.html {% endfor %}
-
@@ -2123,7 +2122,8 @@ cat < templates/edit_game.html
- + +
@@ -2162,7 +2162,7 @@ cat < templates/edit_game.html
- + {% if game.status == 'geschenkt' %}
@@ -2212,9 +2212,11 @@ cat < templates/edit_game.html }); }); + {% endblock %} + HTML_END cat < templates/add_game.html From 0ac64ac7c1c4c7284c68514d997ae302f62689d9 Mon Sep 17 00:00:00 2001 From: nocci Date: Tue, 10 Jun 2025 11:46:32 +0200 Subject: [PATCH 4/6] fix edit_game in setup.sh --- setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.sh b/setup.sh index 83ca989..eb5fc4e 100644 --- a/setup.sh +++ b/setup.sh @@ -863,6 +863,7 @@ def add_game(): notes=request.form.get('notes', ''), url=url, steam_appid=steam_appid, + platform=request.form.get('platform', 'pc'), redeem_date=datetime.strptime(request.form['redeem_date'], '%Y-%m-%d') if request.form['redeem_date'] else None, user_id=current_user.id ) From 00f1767b6ad8f0d74b9e7c70fce4169d5c91fe98 Mon Sep 17 00:00:00 2001 From: nocci Date: Tue, 10 Jun 2025 11:51:11 +0200 Subject: [PATCH 5/6] fixed game_edit in app.py --- steam-gift-manager/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/steam-gift-manager/app.py b/steam-gift-manager/app.py index a866da5..18614b0 100644 --- a/steam-gift-manager/app.py +++ b/steam-gift-manager/app.py @@ -682,6 +682,7 @@ def add_game(): notes=request.form.get('notes', ''), url=url, steam_appid=steam_appid, + platform=request.form.get('platform', 'pc'), redeem_date=datetime.strptime(request.form['redeem_date'], '%Y-%m-%d') if request.form['redeem_date'] else None, user_id=current_user.id ) From 5f5800734f8c60b990e5116d852317e31e48c408 Mon Sep 17 00:00:00 2001 From: nocci Date: Thu, 12 Jun 2025 11:50:52 +0200 Subject: [PATCH 6/6] test --- setup.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.sh b/setup.sh index eb5fc4e..5194fda 100644 --- a/setup.sh +++ b/setup.sh @@ -2217,7 +2217,6 @@ cat < templates/edit_game.html {% endblock %} - HTML_END cat < templates/add_game.html