WebHost: Spoiler is now longstr, which doesn't need BOM handling

This commit is contained in:
Fabian Dill 2020-08-03 06:38:30 +02:00
parent 2716b78d07
commit d511dc7347
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def download_patch(patch_id, room_id):
@app.route("/dl_spoiler/<suuid:seed_id>") @app.route("/dl_spoiler/<suuid:seed_id>")
def download_spoiler(seed_id): def download_spoiler(seed_id):
return Response(Seed.get(id=seed_id).spoiler[3:], mimetype="text/plain") return Response(Seed.get(id=seed_id).spoiler, mimetype="text/plain")
@app.route("/dl_raw_patch/<suuid:seed_id>/<int:player_id>") @app.route("/dl_raw_patch/<suuid:seed_id>/<int:player_id>")