Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ indexes:
- kind: userDetails
ancestor: yes
properties:
- name: FavouriteGame
- name: gamertag
- name: genre
- name: platform
- name: timestamp
direction: desc
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
9 changes: 2 additions & 7 deletions templates/account.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
<a id="detailsBtn" href="/accountInfo"><span class="glyphicon glyphicon-list"></span></a>
<div class="mainDiv-account">
<p id="account-name"></p>
{% for data in data %}
<dl>
<dt class="dt">Favourite Game: </dt><dd class="dt">{{ data.FavouriteGame }}</dd>
<dt class="dt">GamerTag: </dt><dd class="dt">{{ data.gamertag }}</dd>
<dt class="dt">Genre: </dt><dd class="dt">{{ data.genre }}</dd>
<dt class="dt">Platform: </dt><dd class="dt">{{ data.platform }}</dd>
</dl>
{% for user in data %}
<p>{{ user['gamertag'] }}</p>
{% endfor %}
<footer class="footer">
<h1>© 2022 Matt Lee</h1>
Expand Down