make buttons submit and cancel work

This commit is contained in:
Thomas Peetz
2025-06-13 01:11:18 +02:00
parent da4f286180
commit 510e2f8130
5 changed files with 46 additions and 19 deletions
+3 -1
View File
@@ -25,5 +25,7 @@ def get_issue_details(issue: Issue) -> IssueDetailsResponse:
return response
def update_comic(comic: ComicSchema, comic_id: AnyStr, db: Session):
def update_comic(comic: ComicSchema, comic_id: AnyStr, db: Session) -> type[Comic] | None:
logger.info(f"update_comic: {comic} with {comic_id}")
comic = db.get(Comic, comic_id)
return comic