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:
parent
893a07e045
commit
e061c1a2b7
3 changed files with 1002 additions and 758 deletions
1732
poetry.lock
generated
1732
poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -5,26 +5,27 @@ description = ""
|
||||||
authors = ["Lukas Winkler <git@lw1.at>"]
|
authors = ["Lukas Winkler <git@lw1.at>"]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.7"
|
python = "^3.11"
|
||||||
Flask = "^2.0.0"
|
Flask = "^3.0.0"
|
||||||
Flask-Limiter = "^2.1.0"
|
Flask-Limiter = "^3.6.0"
|
||||||
Flask-Session = "^0.4.0"
|
Flask-Session = "^0.8.0"
|
||||||
gunicorn = "^20.0.4"
|
gunicorn = "^22.0.0"
|
||||||
libsass = "^0.22.0"
|
libsass = "^0.23.0"
|
||||||
Pillow = "^9.0.0"
|
Pillow = "^10.3.0"
|
||||||
sentry-sdk = {extras = ["flask"], version = "^1.1.0"}
|
sentry-sdk = {extras = ["flask"], version = "^2.0.1"}
|
||||||
peewee = "^3.13.1"
|
peewee = "^3.13.1"
|
||||||
markovify = "^0.9.0"
|
markovify = "^0.9.0"
|
||||||
PyMySQL = "^1.0.0"
|
PyMySQL = "^1.0.0"
|
||||||
redis = "^4.1.0"
|
redis = "^5.0.0"
|
||||||
setproctitle = "^1.2.1"
|
setproctitle = "^1.2.1"
|
||||||
|
setuptools = "^69.5.1"
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
jsonlines = "^3.0.0"
|
jsonlines = "^4.0.0"
|
||||||
lxml = "^4.4.2"
|
lxml = "^5.0.0"
|
||||||
requests = "^2.22.0"
|
requests = "^2.22.0"
|
||||||
internetarchive = "^3.0.0"
|
internetarchive = "^4.0.0"
|
||||||
python-slugify = "^7.0.0"
|
python-slugify = "^8.0.0"
|
||||||
beautifulsoup4 = "^4.8.1"
|
beautifulsoup4 = "^4.8.1"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
|
|
|
@ -204,6 +204,7 @@ def image(site_id=None):
|
||||||
@app.route("/api/vote/<string:type>/<int:id>/<string:vote>", methods=["POST"])
|
@app.route("/api/vote/<string:type>/<int:id>/<string:vote>", methods=["POST"])
|
||||||
@limiter.limit("10 per minute")
|
@limiter.limit("10 per minute")
|
||||||
def vote(type, id, vote):
|
def vote(type, id, vote):
|
||||||
|
abort(403) # remove voting completely to not change historical data anymore
|
||||||
if "voted" not in session:
|
if "voted" not in session:
|
||||||
session["voted"] = {}
|
session["voted"] = {}
|
||||||
print(session["voted"])
|
print(session["voted"])
|
||||||
|
|
Loading…
Reference in a new issue