Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
jgdhs27 committed Dec 31, 2023
1 parent d34d5a1 commit 0e8f82d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions project/thscoreboard/replays/test_replays_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,5 @@ def testCreateLeaderboardUrlWithoutOptionalFields(self) -> None:
game_id="th08",
difficulty_id=1,
)
expected = (
"/replays/th08?difficulty=1"
)
expected = "/replays/th08?difficulty=1"
self.assertEquals(actual, expected)
7 changes: 2 additions & 5 deletions project/thscoreboard/replays/views/replay_list.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
"""Contains views which list various replays."""

import json
from typing import Optional

from django import urls
from django.views.decorators import http as http_decorators
from django.shortcuts import get_object_or_404, render, redirect
from django.db.models import Manager, Q
from django.db.models import Manager
from django.core.handlers.wsgi import WSGIRequest

from replays import models
Expand Down Expand Up @@ -40,9 +39,7 @@ def game_scoreboard_old_url(
difficulty: An integer corresponding to the replay difficulty to display.
shot_id: The shot ID the user is interested in viewing.
"""
return redirect(
urls.reverse("Replays/GameScoreboard", args=[game_id])
)
return redirect(urls.reverse("Replays/GameScoreboard", args=[game_id]))


@http_decorators.require_safe
Expand Down
2 changes: 1 addition & 1 deletion project/thscoreboard/replays/views/test_replay_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ def test_th16(self):
)
self.assertEqual(
starting_filters,
{'Character': 'Reimu', 'Difficulty': 'Lunatic', 'Subshot': 'Winter'},
{"Character": "Reimu", "Difficulty": "Lunatic", "Subshot": "Winter"},
)

0 comments on commit 0e8f82d

Please sign in to comment.