Skip to content

Commit

Permalink
Delete accidentally-left-in commented stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rook committed Dec 30, 2024
1 parent 9125e5d commit 49de983
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions project/thscoreboard/replays/migrations/0042_unique_rank_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,7 @@ class Migration(migrations.Migration):
route_id,
category,
place DESC;
""",
# old:
# """
# CREATE OR REPLACE VIEW replays_rank
# AS
# SELECT row_number() over () as id, replay, score, shot_id, difficulty, route_id, category, place
# FROM (
# SELECT id as replay, score, shot_id, difficulty, route_id, category, rank() OVER (PARTITION BY shot_id, difficulty, route_id, category ORDER BY score DESC, created, id) as place
# FROM replays_replay
# WHERE replay_type = 1 -- FULL_GAME
# AND category = 1 -- STANDARD
# ) AS ranked
# WHERE place <= 3
# ORDER BY shot_id, difficulty, route_id, category, place desc
# ;
# """,
""",
reverse_sql="""
CREATE OR REPLACE VIEW replays_rank
AS
Expand Down

0 comments on commit 49de983

Please sign in to comment.