Beispiel #1
0
def detail_job(job_id):
    """"""
    job = api_job.get(job_id)
    return jsonres(rv=dict(id=job.id,
                           title=job.title,
                           readCount=job.read_count,
                           status=job.status,
                           content=job.content,
                           userId=job.user_id,
                           type=job.job_type,
                           create_at=mkmillseconds(job.create_at)))
Beispiel #2
0
def list_report(job_id):
    """"""
    job = api_job.get(job_id)
    return render_template('job/report_list.html', job=job, reports=job.reports)