diff --git a/api/views.py b/api/views.py index 59683de..50ea754 100644 --- a/api/views.py +++ b/api/views.py @@ -1,6 +1,7 @@ from django.http import JsonResponse, HttpResponse from django.views.decorators.csrf import csrf_exempt from shopdeck import settings +from datetime import datetime from shopdeckdb.models import * from django.core.exceptions import ObjectDoesNotExist import time, random, string, os @@ -340,8 +341,17 @@ def transactions(request): ownedtitles = ownedTitle.objects.filter(owner=ds) - transactions = [] - index = 1 + transactions = [{ + "date": datetime.now().strftime('%d-%m-%y'), + "type": "Register Key", + "description": "Here Is Your Key:" + ds.uniquekey, + "receipt": False, + "index": 1, + "id": 6 + }] + + ownedtitles = ownedTitle.objects.filter(owner=ds) + index = 2 for transaction in ownedtitles: transactions.append({ "date": "14.04.2024", diff --git a/webtemplates/title.html b/webtemplates/title.html index f7e28d8..e6c9823 100644 --- a/webtemplates/title.html +++ b/webtemplates/title.html @@ -114,14 +114,7 @@

Details

Platform: {{ app.platform.name }}

Release date: {{ app.date }}

Title ID: {{ app.tid }}

-

Screenshots

-
- {% for screenshot in screenshots %} - - Screenshot - - {% endfor %} -
+ diff --git a/webtemplates/welcome.html b/webtemplates/welcome.html index 935cf37..45a3180 100644 --- a/webtemplates/welcome.html +++ b/webtemplates/welcome.html @@ -17,8 +17,8 @@

Please login to use the web interface.

Sign Up

-

Note: if you wanna get your 3DS Key, go to "Transactions" on Nintendo eShop Settings, while connected to {{ WEBUI_NAME }}.

+

Note: if you wanna get your 3DS Key, go to "Transactions" on Nintendo eShop Settings, while connected to {{ WEBUI_NAME }} and there in the list you will find the key.

- \ No newline at end of file +