From add980414f5f5d4066ea2d11598a6d3022c0d251 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Wed, 7 Aug 2024 13:20:27 +0200 Subject: [PATCH] registration spelling fix --- backend/routers/business.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/routers/business.py b/backend/routers/business.py index 076559e6..5a26ccaf 100644 --- a/backend/routers/business.py +++ b/backend/routers/business.py @@ -97,13 +97,14 @@ async def read_business_by_business_id(business_id: str, session: SessionContain "business_id": item[0], "Name": item[1], "type": item[2], - "tregistration_noitle": item[3], + "registration_no": item[3], "logo_name": item[4], "logo_path": item[5], "app_id": item[6], } for item in cursor.fetchall() ] + # cursor.close() db.close() if(len(items)!= 0): @@ -131,7 +132,7 @@ async def read_business_by_app_id(app_id: str, session: SessionContainer = Depen "business_id": item[0], "Name": item[1], "type": item[2], - "tregistration_noitle": item[3], + "registration_no": item[3], "logo_name": item[4], "logo_path": item[5], "app_id": item[6],