Skip to content

Commit 9109a85

Browse files
committed
fix: minor fixes
1 parent 0e697da commit 9109a85

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

python/src/routers/connect4_router/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ def play(column: int = Query(title="The column ID you want to play to.", ge=0, l
3535
else:
3636
generate_board(c4)
3737
last_play_time = time()
38-
return RedirectResponse(GITHUB_PROFILE_URL)
38+
return RedirectResponse(f"{GITHUB_PROFILE_URL}#connect4")
3939

4040

4141
@router.get("/reset")
4242
def reset():
4343
if not c4.is_over and time() - last_play_time < 300:
44-
return RedirectResponse(GITHUB_PROFILE_URL)
44+
return RedirectResponse(f"{GITHUB_PROFILE_URL}#connect4")
4545

4646
c4.reset()
4747
generate_board(c4)
48-
return RedirectResponse(GITHUB_PROFILE_URL)
48+
return RedirectResponse(f"{GITHUB_PROFILE_URL}#connect4")

python/src/routers/minesweeper_router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def response_img(img: bytes):
5454

5555

5656
def redirect_to_github():
57-
return RedirectResponse(GITHUB_PROFILE_URL)
57+
return RedirectResponse(f"{GITHUB_PROFILE_URL}#minesweeper")
5858

5959

6060
@router.get("/img/{i}/{j}")

scripts/readme_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ def generate_minesweeper_markdown() -> str:
1919
markdown: list[list[str]] = [
2020
[
2121
f'[<img height="50px" src="{BASE_URL}/ms/img/flag-toggle"/>]({BASE_URL}/ms/toggle-flag)',
22-
'<img height="50px" width="75px" src="/static/ms/header"/>',
22+
f'<img height="50px" width="75px" src="{BASE_URL}/static/ms/header.png"/>',
2323
f'[<img height="50px" src="{BASE_URL}/ms/img/face"/>]({BASE_URL}/ms/reset)',
24-
'<img height="50px" width="75px" src="/static/ms/header"/>',
24+
f'<img height="50px" width="75px" src="{BASE_URL}/static/ms/header.png"/>',
2525
f'[<img height="50px" src="{BASE_URL}/ms/img/undo"/>]({BASE_URL}/ms/undo)',
2626
]
2727
]

static/connect4/margin.png

0 Bytes
Loading

0 commit comments

Comments
 (0)