From a8816afc08ecbde126582c6b15c049184e97d794 Mon Sep 17 00:00:00 2001 From: "ahmed.mujtaba" Date: Mon, 3 Aug 2026 20:44:35 +0500 Subject: [PATCH] .. --- backend/inbox/views.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/backend/inbox/views.py b/backend/inbox/views.py index ab4248c..0a85f92 100644 --- a/backend/inbox/views.py +++ b/backend/inbox/views.py @@ -47,10 +47,8 @@ class Email: raise HTTPException(status_code=500,detail=str(e)) async def get_inbox_messages(self,top,skip,search=None): - # Now here call the classmethod and return the result to app.py not removing the file or nbot rtouching the app.py code not touching any thin ion app.py only these two functions thjats it nothing else in views.py either pass - pass - - async def count_inbox_messages(self,search=None): - # Now here call the classmethod and return the result to app.py not removing the file or nbot rtouching the app.py code not touching any thin ion app.py only these two functions thjats it nothing else in views.py either + messages=await Inbox_Messages.get_inbox_messages(self.session,top,skip,search) + return [serialize_message(m) for m in messages] - pass + async def count_inbox_messages(self,search=None): + return await Inbox_Messages.count_inbox_messages(self.session,search)