def GET_v1_compile_job_id_src(job_id): """Download the full source for a completed compile job. """ job = get_job_metadata(job_id) if not job: return error("Compile job not found", 404) return redirect( qmk_storage.get_public_url('%(id)s/%(source_archive)s' % job['result']))
def GET_v1_compile_job_id_bin(job_id): """Download a compiled firmware. New clients should prefer the `/download` URL. `/hex` is deprecated and will be removed in a future version. """ job = get_job_metadata(job_id) if not job: return error("Compile job not found", 404) return redirect( qmk_storage.get_public_url('%(id)s/%(firmware_filename)s' % job['result']))