This commit is contained in:
Alfie King 2025-06-28 18:12:09 +01:00
parent d48dd04af9
commit e66f7e0588
3 changed files with 11 additions and 4 deletions

View File

@ -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" ]

View File

@ -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

View File

@ -104,6 +104,16 @@
<h1>Some News</h1>
<h6>(dont expect this to be updated often tho :P)</h6>
<ul>
<li>
<h2>28-06-2025</h2>
<p>
I have updated the site a bit, I have added a few more featues, but the main update is that the site is now using flask as a backend.
I didn't want to use a framework at first, mainly because I like the simplicity of a static site, but it allows me to use templatiing and makes
adding new features easier and more organized. The site is also more interacive now, with a few secrets on some of the pages. I still plan on adding
more secrets and features. I also plan on adding a blog section, that I will move this to, so that I can give updates on the site and other things
that I find interesting.
</p>
</li>
<li>
<h2>18-06-2025</h2>
<p>