Skip to content

Commit

Permalink
Fix typos and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
besser435 committed Nov 5, 2023
1 parent 33a709d commit ef232df
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
3 changes: 0 additions & 3 deletions website/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ def update_lottery():
draw_date = request.form["draw_date"]

return "OK", 200
#BUG something throws a typeError. Could it be this? Should it be: return "OK", 200"?


except Exception as e:
logging.error(f"Internal error on update_lottery: {e}")
return "Internal error on update_lottery", 500
Expand Down
9 changes: 1 addition & 8 deletions website/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,13 @@
<link rel="manifest" href="/static/manifest.json">
<meta name="theme-color" content="#555"/>
<script>
console.log("Registering service worker...");
// this was from some example on GitHub, can't find it though :(
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("static/js/sw.js")
.then(function (registration) {
// Registration was successful
console.log(
"ServiceWorker registration successful with scope: ",
registration.scope
);
})
.catch(function (err) {
// registration failed :(
console.log("ServiceWorker registration failed: ", err);
});
}
Expand All @@ -44,7 +38,6 @@
if (choiceResult.outcome == "dismissed") {
console.log("User cancelled home screen install");
} else {
// 如果用户将网页添加到主屏幕
console.log("User added to home screen");
}
});
Expand Down
2 changes: 1 addition & 1 deletion website/templates/lottery.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h3>FAQ</h3>
<p><em>How much of the jackpot does the winner get?</em></p>
<p>
The winner is entitled to no less than 85% of the jackpot. The remaining funds are reserved for USAI to use
as we see fit. They will mainly to expand the jackpot for future drawings, or for other USAI projects that
as we see fit. They will mainly be used to expand the jackpot for future drawings, or for other USAI projects that
benefit the public.
</p>
</div>
Expand Down
2 changes: 2 additions & 0 deletions website/templates/players.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ <h2 style="margin: 20px auto;">TEAW Player Data</h2>
<a href="#" id="help-button">?</a>

<div class="player-box">
<!-- TODO: add total sessions, playtime, and average playtime per session -->
<!-- Also add skin profile pictures -->
{% for user in offline_users %}
<p class="username"><strong>{{ user.username }}</strong> last online <span data-last-online="{{ user.last_on_time }}"></span></p>
{% endfor %}
Expand Down

0 comments on commit ef232df

Please sign in to comment.