Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
fix: task url with job_id instead of job.id
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateus Pontes committed Feb 14, 2020
1 parent eef87cc commit 2e58264
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fastlane/api/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def status():

for job in scheduled_jobs:
j = job.to_dict(
include_executions=False,
blacklist_fn=current_app.blacklist_words_fn,
include_executions=False, blacklist_fn=current_app.blacklist_words_fn
)

itr = croniter.croniter(job.metadata["cron"], datetime.utcnow())
Expand All @@ -82,12 +81,12 @@ def status():
task_id = job.task.task_id

job_url = url_for(
"task.get_job", task_id=task_id, job_id=str(job.id), _external=True
"task.get_job", task_id=task_id, job_id=str(job.job_id), _external=True
)
j["url"] = job_url

stop_job_url = url_for(
"task.stop_job", task_id=task_id, job_id=str(job.id), _external=True
"task.stop_job", task_id=task_id, job_id=str(job.job_id), _external=True
)
j["stopUrl"] = stop_job_url

Expand Down

0 comments on commit 2e58264

Please sign in to comment.