1
0
mirror of https://codeberg.org/diginaut/digimarks.git synced 2026-02-04 10:20:26 +01:00

Small fixes

This commit is contained in:
2025-12-11 17:57:59 +01:00
parent 14f09a2dfb
commit 96a8946a9a
3 changed files with 6 additions and 6 deletions

View File

@@ -124,7 +124,7 @@ async def autocomplete_bookmark(
user_key: str,
bookmark: Bookmark,
strip_params: bool = False,
):
) -> Bookmark:
"""Autofill some fields for this (new) bookmark for user `user_key`."""
bookmark.user_key = user_key
@@ -152,7 +152,7 @@ async def add_bookmark(
user_key: str,
bookmark: Bookmark,
strip_params: bool = False,
):
) -> Bookmark:
"""Add new bookmark for user `user_key`."""
bookmark.user_key = user_key
@@ -174,7 +174,7 @@ async def update_bookmark(
bookmark: Bookmark,
url_hash: str,
strip_params: bool = False,
):
) -> Bookmark:
"""Update existing bookmark `bookmark_key` for user `user_key`."""
result = await session.exec(
select(Bookmark).where(
@@ -205,7 +205,7 @@ async def delete_bookmark(
session,
user_key: str,
url_hash: str,
):
) -> None:
"""(Soft)Delete bookmark `bookmark_key` for user `user_key`."""
result = await session.get(Bookmark, {'url_hash': url_hash, 'user_key': user_key})
bookmark = result

View File

@@ -310,7 +310,7 @@ async def page_user_landing(
session: SessionDep,
request: Request,
user_key: str,
):
) -> HTMLResponse:
"""HTML page with the main view for the user."""
result = await session.exec(select(User).where(User.key == user_key))
user = result.first()

View File

@@ -16,7 +16,7 @@
.thumbnail {
/*width: 80px;*/
width: 66;
width: 66px;
}
.thumbnail img {