Archived
docs: update warning and error messages for job posting source implementations
This commit is contained in:
@@ -22,12 +22,12 @@ async def get_job_postings(search_term: str, source: PostingSource = PostingSour
|
|||||||
match source:
|
match source:
|
||||||
case PostingSource.ALL:
|
case PostingSource.ALL:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"Only Duunitori and Tyomarkkinatori are implemented at the moment."
|
"LinkedIn is not implemented at the moment. Only Duunitori and Tyomarkkinatori are implemented."
|
||||||
)
|
)
|
||||||
postings = await duunitori(search_term)
|
postings = await duunitori(search_term)
|
||||||
postings.extend(await tyomarkkinatori(search_term))
|
postings.extend(await tyomarkkinatori(search_term))
|
||||||
case PostingSource.LINKEDIN:
|
case PostingSource.LINKEDIN:
|
||||||
logger.error(f"Job postings from {source.value} Not implemented yet")
|
logger.error(f"Job postings from {source.value} are not implemented yet")
|
||||||
raise NotImplementedException()
|
raise NotImplementedException()
|
||||||
case PostingSource.DUUNITORI:
|
case PostingSource.DUUNITORI:
|
||||||
postings = await duunitori(search_term)
|
postings = await duunitori(search_term)
|
||||||
|
|||||||
Reference in New Issue
Block a user