From 49a81b548938fe034b7d1f606caf1f5d6b40110e Mon Sep 17 00:00:00 2001 From: Gitea CI Date: Tue, 12 May 2026 22:45:09 +0000 Subject: [PATCH 1/2] chore: update dependencies 2026-05-12 --- poetry.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index 74f873a..6a7c79f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.3.2 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.1.1 and should not be changed by hand. [[package]] name = "attrs" @@ -704,7 +704,7 @@ files = [ [package.dependencies] attrs = ">=22.2.0" -jsonschema-specifications = ">=2023.3.6" +jsonschema-specifications = ">=2023.03.6" referencing = ">=0.28.4" rpds-py = ">=0.25.0" @@ -2258,7 +2258,7 @@ files = [ {file = "typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548"}, {file = "typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466"}, ] -markers = {pi = "python_version == \"3.12\""} +markers = {pi = "python_version < \"3.13\""} [[package]] name = "urllib3" From c2faf2c81c02f6b1046fb1074f8bce9189b2148a Mon Sep 17 00:00:00 2001 From: Andrew Kettel Date: Tue, 12 May 2026 16:42:02 -0700 Subject: [PATCH 2/2] Fixing ruff and mypy issues (#20) Reviewed-on: https://gitea.letteka.com/letteka/birdcam/pulls/20 Co-authored-by: Andrew Kettel Co-committed-by: Andrew Kettel --- src/database.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/database.py b/src/database.py index 1e78265..7bb0c92 100644 --- a/src/database.py +++ b/src/database.py @@ -66,13 +66,11 @@ class CameraEvent(Base): @staticmethod def recent(limit: int = 50) -> list[CameraEvent]: return list( - - db.session.execute( - db.select(CameraEvent) - .order_by(CameraEvent.timestamp.desc()) - .limit(limit) - ) - .scalars() - .all() - + db.session.execute( + db.select(CameraEvent) + .order_by(CameraEvent.timestamp.desc()) + .limit(limit) + ) + .scalars() + .all() )