diff --git a/index.yaml b/index.yaml index 98323b4..e1fca9f 100644 --- a/index.yaml +++ b/index.yaml @@ -23,5 +23,9 @@ indexes: - kind: userDetails ancestor: yes properties: + - name: FavouriteGame + - name: gamertag + - name: genre + - name: platform - name: timestamp direction: desc \ No newline at end of file diff --git a/main.py b/main.py index 892de24..10217de 100644 --- a/main.py +++ b/main.py @@ -15,8 +15,8 @@ # Enable running on local dev environment # Always comment lines 12 and 13 before running on the cloud, otherwise the app will NOT work -# os.environ.setdefault("GCLOUD_PROJECT", "ad-gamezone") -# os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = (r"C:\Users\matth\Desktop\AdLocalCoursework\venv\application_default_credentials.json") +os.environ.setdefault("GCLOUD_PROJECT", "ad-gamezone") +os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = (r"C:\Users\matth\Desktop\AdLocalCoursework\venv\application_default_credentials.json") firebase_request_adapter = grequests.Request() diff --git a/templates/account.html b/templates/account.html index cf04ac4..96e58d4 100644 --- a/templates/account.html +++ b/templates/account.html @@ -7,13 +7,8 @@

- {% for data in data %} -
-
Favourite Game:
{{ data.FavouriteGame }}
-
GamerTag:
{{ data.gamertag }}
-
Genre:
{{ data.genre }}
-
Platform:
{{ data.platform }}
-
+ {% for user in data %} +

{{ user['gamertag'] }}

{% endfor %}