From 96a8946a9ad797748a78d5ae70e2310528823da1 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Thu, 11 Dec 2025 17:57:59 +0100 Subject: [PATCH] Small fixes --- src/digimarks/bookmarks_service.py | 8 ++++---- src/digimarks/main.py | 2 +- src/digimarks/static/css/digimarks.css | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/digimarks/bookmarks_service.py b/src/digimarks/bookmarks_service.py index 0906360..21a6533 100644 --- a/src/digimarks/bookmarks_service.py +++ b/src/digimarks/bookmarks_service.py @@ -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 diff --git a/src/digimarks/main.py b/src/digimarks/main.py index 5a6af45..8b16598 100644 --- a/src/digimarks/main.py +++ b/src/digimarks/main.py @@ -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() diff --git a/src/digimarks/static/css/digimarks.css b/src/digimarks/static/css/digimarks.css index a88047b..5262acc 100644 --- a/src/digimarks/static/css/digimarks.css +++ b/src/digimarks/static/css/digimarks.css @@ -16,7 +16,7 @@ .thumbnail { /*width: 80px;*/ - width: 66; + width: 66px; } .thumbnail img {