mirror of https://github.com/Bunsly/JobSpy
refactor(JobResponse): attr order
parent
b36cfaeca2
commit
ff0213978e
|
@ -57,11 +57,11 @@ class JobResponse(BaseModel):
|
|||
success: bool
|
||||
error: str = None
|
||||
|
||||
jobs: list[JobPost] = []
|
||||
|
||||
total_results: int = None
|
||||
returned_results: int = None
|
||||
|
||||
jobs: list[JobPost] = []
|
||||
|
||||
@validator("returned_results")
|
||||
def set_returned_results(cls, v, values):
|
||||
if v is None and values.get("jobs"):
|
||||
|
|
Loading…
Reference in New Issue