Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions handlers/difficultyRatingHandler.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from tornado.gen import engine
from tornado.web import asynchronous
from common.web import requestsManager

class handler(requestsManager.asyncRequestHandler):
@asynchronous
@engine
def asyncPost(self):
try:
self.set_status(307, "Moved Temporarily")
self.add_header("Location", f"https://osu.ppy.sh/difficulty-rating")
except ValueError:
self.set_status(400)
self.write("")
2 changes: 1 addition & 1 deletion handlers/submitModularHandler.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ from objects import beatmap
from objects import glob
from objects import score
from objects import scoreboard
from objects.charts import BeatmapChart, OverallChart , OverallChartFailed , BeatmapChartFailed
from objects.charts import BeatmapChart, OverallChart, OverallChartFailed, BeatmapChartFailed
from secret import butterCake

class handler(requestsManager.asyncRequestHandler):
Expand Down
3 changes: 3 additions & 0 deletions lets.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
from handlers import uploadScreenshotHandler
from handlers import commentHandler
from handlers import seasonalHandler
from handlers import difficultyRatingHandler
from helpers import consoleHelper
from common import agpl
from objects import glob
Expand Down Expand Up @@ -92,6 +93,8 @@ def make_app():
(r"/web/osu-addfavourite.php", emptyHandler.handler),

(r"/loadTest", loadTestHandler.handler),

(r"/difficulty-rating", difficultyRatingHandler.handler),
], default_handler_class=defaultHandler.handler)


Expand Down