From e66f7e058820579d6fc67d37177b649dc9b05441 Mon Sep 17 00:00:00 2001 From: Alfie King Date: Sat, 28 Jun 2025 18:12:09 +0100 Subject: [PATCH] update --- dockerfile | 3 --- src/routes/snake.py | 2 +- templates/index.html | 10 ++++++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/dockerfile b/dockerfile index 84a499b..36948e9 100644 --- a/dockerfile +++ b/dockerfile @@ -18,8 +18,5 @@ COPY static static # Expose the port the app runs on EXPOSE 5000 -# Set environment variables -ENV FLASK_APP=app.py - # run the application ENTRYPOINT [ "gunicorn", "-b", ":5000", "--access-logfile", "-", "--error-logfile", "-", "src.wsgi:app" ] \ No newline at end of file diff --git a/src/routes/snake.py b/src/routes/snake.py index 3d354b2..b9f39b1 100644 --- a/src/routes/snake.py +++ b/src/routes/snake.py @@ -46,7 +46,7 @@ def valid_score(score, game_token): current_time = datetime.datetime.now() elapsed_time = (current_time - start_time).total_seconds() - if elapsed_time < score / 10 * 5 + 15: # assuming that each point takes 3 seconds to achieve and 15 seconds to start the game and do captcha + if elapsed_time < score / 10 * 5 + 15: # assuming that each point takes 5 seconds to achieve and 15 seconds to start the game and do captcha log.error("Score is too high for the elapsed time.") return False diff --git a/templates/index.html b/templates/index.html index 655fdf5..eae876b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -104,6 +104,16 @@

Some News

(dont expect this to be updated often tho :P)