pull/1/head
ahmed.mujtaba 2026-08-03 20:44:35 +05:00
parent 04a6264bb0
commit a8816afc08
1 changed files with 4 additions and 6 deletions

View File

@ -47,10 +47,8 @@ class Email:
raise HTTPException(status_code=500,detail=str(e)) raise HTTPException(status_code=500,detail=str(e))
async def get_inbox_messages(self,top,skip,search=None): 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 messages=await Inbox_Messages.get_inbox_messages(self.session,top,skip,search)
pass return [serialize_message(m) for m in messages]
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
pass async def count_inbox_messages(self,search=None):
return await Inbox_Messages.count_inbox_messages(self.session,search)