|
|
@@ -181,11 +181,18 @@ def archives():
|
|
|
size_bytes = file_stats[name]["size_bytes"] or None
|
|
|
run = runs_by_archive.get(name)
|
|
|
job = jobs_by_id.get(run.job_id) if run else None
|
|
|
+ app_id = None
|
|
|
+ if job and job.type == "ynh_app" and job.config_json:
|
|
|
+ try:
|
|
|
+ app_id = json.loads(job.config_json).get("app_id")
|
|
|
+ except Exception:
|
|
|
+ pass
|
|
|
items.append({
|
|
|
"name": name,
|
|
|
"type": job.type if job else "",
|
|
|
"job_name": job.name if job else "—",
|
|
|
"job_id": job.id if job else None,
|
|
|
+ "app_id": app_id,
|
|
|
"last_status": run.status if run else None,
|
|
|
"run_at": run.started_at if run else None,
|
|
|
"size_bytes": size_bytes,
|