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