Fix formatting issues in history_controller.py and manager/history.py, and update default values in request_data.py

This commit is contained in:
sHa
2024-03-22 08:31:13 +00:00
parent 7c695ccf24
commit a9f50ca4ca
3 changed files with 5 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ class HistoryController(BaseController):
status=Status.error, status=Status.error,
message="No requests found.", message="No requests found.",
) )
return [RequestData(**d) for d in items ] return [RequestData(**d) for d in items]
async def last_requests( async def last_requests(
self, self,

View File

@@ -4,9 +4,9 @@ from schema.methods import Methods
class RequestData(BaseModel): class RequestData(BaseModel):
method: Methods = Methods.GET method: Methods = Methods.GET
data: dict = {} data: dict|None = None
params: dict = {} params: dict = {}
form: dict = {} form: dict|None = None
url: str url: str
headers: dict = {} headers: dict = {}
cookies: dict = {} cookies: dict = {}