Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/d/p/dpxdt-HEAD/dpxdt/server/operations.py   dpxdt(Download)
    def get_stats_keys(status):
        if status in (models.Run.DIFF_APPROVED,
                      models.Run.DIFF_NOT_FOUND):
            return ('runs_successful', 'runs_complete', 'runs_total')
        elif status in models.Run.DIFF_FOUND:
 
        approval_log = None
        if run.status == models.Run.DIFF_APPROVED:
            approval_log = (
                models.AdminLog.query

src/d/p/dpxdt-HEAD/dpxdt/server/frontend.py   dpxdt(Download)
    if request.method == 'POST':
        if form.approve.data and run.status == models.Run.DIFF_FOUND:
            run.status = models.Run.DIFF_APPROVED
            auth.save_admin_log(build, run_approved=True, run=run)
        elif form.disapprove.data and run.status == models.Run.DIFF_APPROVED: