123COMMENT

This commit is contained in:
2025-09-30 14:08:04 +05:30
parent 379fb67aae
commit a81fdb6dd4
19 changed files with 1917 additions and 0 deletions
+9
View File
@@ -79,6 +79,15 @@ class ResponseModel(BaseModel):
http_code: Optional[HttpCodes] = None
api_version: Optional[str] = None
@property
def success(self) -> bool:
"""
A quick wy to check if the response indicates a successful outcome.
"""
return True if self.status_code.value[0] else False
def for_quart(self):
"""