mirror of
https://codeberg.org/diginaut/digimarks.git
synced 2026-02-04 17:20:27 +01:00
Small fixes
This commit is contained in:
@@ -124,7 +124,7 @@ async def autocomplete_bookmark(
|
|||||||
user_key: str,
|
user_key: str,
|
||||||
bookmark: Bookmark,
|
bookmark: Bookmark,
|
||||||
strip_params: bool = False,
|
strip_params: bool = False,
|
||||||
):
|
) -> Bookmark:
|
||||||
"""Autofill some fields for this (new) bookmark for user `user_key`."""
|
"""Autofill some fields for this (new) bookmark for user `user_key`."""
|
||||||
bookmark.user_key = user_key
|
bookmark.user_key = user_key
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ async def add_bookmark(
|
|||||||
user_key: str,
|
user_key: str,
|
||||||
bookmark: Bookmark,
|
bookmark: Bookmark,
|
||||||
strip_params: bool = False,
|
strip_params: bool = False,
|
||||||
):
|
) -> Bookmark:
|
||||||
"""Add new bookmark for user `user_key`."""
|
"""Add new bookmark for user `user_key`."""
|
||||||
bookmark.user_key = user_key
|
bookmark.user_key = user_key
|
||||||
|
|
||||||
@@ -174,7 +174,7 @@ async def update_bookmark(
|
|||||||
bookmark: Bookmark,
|
bookmark: Bookmark,
|
||||||
url_hash: str,
|
url_hash: str,
|
||||||
strip_params: bool = False,
|
strip_params: bool = False,
|
||||||
):
|
) -> Bookmark:
|
||||||
"""Update existing bookmark `bookmark_key` for user `user_key`."""
|
"""Update existing bookmark `bookmark_key` for user `user_key`."""
|
||||||
result = await session.exec(
|
result = await session.exec(
|
||||||
select(Bookmark).where(
|
select(Bookmark).where(
|
||||||
@@ -205,7 +205,7 @@ async def delete_bookmark(
|
|||||||
session,
|
session,
|
||||||
user_key: str,
|
user_key: str,
|
||||||
url_hash: str,
|
url_hash: str,
|
||||||
):
|
) -> None:
|
||||||
"""(Soft)Delete bookmark `bookmark_key` for user `user_key`."""
|
"""(Soft)Delete bookmark `bookmark_key` for user `user_key`."""
|
||||||
result = await session.get(Bookmark, {'url_hash': url_hash, 'user_key': user_key})
|
result = await session.get(Bookmark, {'url_hash': url_hash, 'user_key': user_key})
|
||||||
bookmark = result
|
bookmark = result
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ async def page_user_landing(
|
|||||||
session: SessionDep,
|
session: SessionDep,
|
||||||
request: Request,
|
request: Request,
|
||||||
user_key: str,
|
user_key: str,
|
||||||
):
|
) -> HTMLResponse:
|
||||||
"""HTML page with the main view for the user."""
|
"""HTML page with the main view for the user."""
|
||||||
result = await session.exec(select(User).where(User.key == user_key))
|
result = await session.exec(select(User).where(User.key == user_key))
|
||||||
user = result.first()
|
user = result.first()
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
.thumbnail {
|
.thumbnail {
|
||||||
/*width: 80px;*/
|
/*width: 80px;*/
|
||||||
width: 66;
|
width: 66px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.thumbnail img {
|
.thumbnail img {
|
||||||
|
|||||||
Reference in New Issue
Block a user