mirror of
https://codeberg.org/diginaut/digimarks.git
synced 2026-02-04 07:00:26 +01:00
Small fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
.thumbnail {
|
||||
/*width: 80px;*/
|
||||
width: 66;
|
||||
width: 66px;
|
||||
}
|
||||
|
||||
.thumbnail img {
|
||||
|
||||
Reference in New Issue
Block a user