Skip to content

Commit

Permalink
Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
shrir committed Nov 11, 2024
1 parent e62e513 commit d08a2ae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/app/domain/opportunities/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,16 @@ async def scan(
.options(selectinload(JobPost.company), undefer(JobPost.body))
)

job_post_results = await self.repository.session.execute(statement=job_posts_statement)
opportunities_audit_log_service = OpportunityAuditLogService(session=self.repository.session)
job_post_results = await self.repository.session.execute(statement=job_posts_statement)
if not job_post_results:
logger.info(
"No new jobs found matching tool stack and date range",
tools_include=icp.tool.include,
tools_exclude=icp.tool.exclude,
last_n_days=last_n_days,
)

for result in job_post_results:
job_post = result[0]
try:
Expand Down

0 comments on commit d08a2ae

Please sign in to comment.