From e6de767ddbc811f10a135402fd00abc5c915cc89 Mon Sep 17 00:00:00 2001 From: dat972 Date: Tue, 10 Mar 2026 19:31:43 -0500 Subject: [PATCH] updated backend author service, to handle the fact that SQLAlchemy rows arent tuples --- backend/services/author_service.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/services/author_service.py b/backend/services/author_service.py index 6c2b4fc..cbf9fec 100644 --- a/backend/services/author_service.py +++ b/backend/services/author_service.py @@ -62,10 +62,7 @@ async def list_authors( result = await db.execute(base) authors = [] for row in result.all(): - if isinstance(row, tuple): - author = row[0] - else: - author = row + author = row[0] data = {c.name: getattr(author, c.name) for c in author.__table__.columns} authors.append(data)