diff --git a/setup.sh b/setup.sh index 8320c16..5194fda 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 ) @@ -2029,7 +2030,7 @@ cat < templates/edit_game.html

{{ _('Spiel bearbeiten') }}

- + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
@@ -2092,7 +2093,12 @@ cat < templates/edit_game.html
- +
+ + +
@@ -2117,7 +2123,8 @@ cat < templates/edit_game.html
- + +
@@ -2156,7 +2163,7 @@ cat < templates/edit_game.html
- + {% if game.status == 'geschenkt' %}
@@ -2206,6 +2213,7 @@ cat < templates/edit_game.html }); }); + {% endblock %} 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 ) diff --git a/steam-gift-manager/templates/edit_game.html b/steam-gift-manager/templates/edit_game.html index e33e108..8e28040 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 @@
- +
+ + +
@@ -92,6 +97,7 @@
+
@@ -130,7 +136,7 @@
- + {% if game.status == 'geschenkt' %}
@@ -180,6 +186,5 @@ }); }); + {% endblock %} - -