1
0
Fork 0
mirror of https://github.com/Findus23/se-simulator.git synced 2024-09-19 15:53:45 +02:00

update dependencies and disable voting

This commit is contained in:
Lukas Winkler 2024-05-04 20:40:09 +02:00
parent 893a07e045
commit e061c1a2b7
Signed by: lukas
GPG key ID: 54DE4D798D244853
3 changed files with 1002 additions and 758 deletions

1732
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

@ -5,26 +5,27 @@ description = ""
authors = ["Lukas Winkler <git@lw1.at>"]
[tool.poetry.dependencies]
python = "^3.7"
Flask = "^2.0.0"
Flask-Limiter = "^2.1.0"
Flask-Session = "^0.4.0"
gunicorn = "^20.0.4"
libsass = "^0.22.0"
Pillow = "^9.0.0"
sentry-sdk = {extras = ["flask"], version = "^1.1.0"}
python = "^3.11"
Flask = "^3.0.0"
Flask-Limiter = "^3.6.0"
Flask-Session = "^0.8.0"
gunicorn = "^22.0.0"
libsass = "^0.23.0"
Pillow = "^10.3.0"
sentry-sdk = {extras = ["flask"], version = "^2.0.1"}
peewee = "^3.13.1"
markovify = "^0.9.0"
PyMySQL = "^1.0.0"
redis = "^4.1.0"
redis = "^5.0.0"
setproctitle = "^1.2.1"
setuptools = "^69.5.1"
[tool.poetry.dev-dependencies]
jsonlines = "^3.0.0"
lxml = "^4.4.2"
jsonlines = "^4.0.0"
lxml = "^5.0.0"
requests = "^2.22.0"
internetarchive = "^3.0.0"
python-slugify = "^7.0.0"
internetarchive = "^4.0.0"
python-slugify = "^8.0.0"
beautifulsoup4 = "^4.8.1"
[build-system]

View file

@ -204,6 +204,7 @@ def image(site_id=None):
@app.route("/api/vote/<string:type>/<int:id>/<string:vote>", methods=["POST"])
@limiter.limit("10 per minute")
def vote(type, id, vote):
abort(403) # remove voting completely to not change historical data anymore
if "voted" not in session:
session["voted"] = {}
print(session["voted"])