From 06ad38b0402c5f4b033c53d73cf15e8df5dd96f1 Mon Sep 17 00:00:00 2001 From: WEVIA Date: Thu, 16 Apr 2026 02:54:16 +0200 Subject: [PATCH] fix: OSS skills c.tools + scan_time display --- oss-discovery.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oss-discovery.html b/oss-discovery.html index f20abf6f7..8b4832d71 100644 --- a/oss-discovery.html +++ b/oss-discovery.html @@ -83,7 +83,7 @@ async function load(){ const r=await fetch(CACHE+'?t='+Date.now()); if(!r.ok)throw new Error('cache '+r.status); const c=await r.json(); - render(c.report,c.skills||{total:0,items:[]}); + render(c.report,c.tools||{}); }catch(e){ _lastScan=d.scan_time||d.last_scan||''; document.getElementById('app').innerHTML=`
Erreur: ${e.message}
`; @@ -98,7 +98,7 @@ function render(d,sk){ const wr=ws.success?Math.round(ws.success/(ws.success+(ws.failed||0))*100):0; const tr=ts.pass?Math.round(ts.pass/(ts.total||1)*100):0; - _lastScan=d.last_scan||''; + _lastScan=d.scan_time||d.last_scan||''; document.getElementById('app').innerHTML=`
Discovered
${d.total}
GitHub sources
@@ -108,7 +108,7 @@ function render(d,sk){
Wire ✅
${ws.success||0}
Success
Wire ❌
${ws.failed||0}
Failed
Tests
${ts.pass||0}/${ts.total||0}
Pass rate
-
Last Scan
${(d.last_scan||'never').replace('T',' ').slice(0,16)}
Cron daily 4h
+
Last Scan
${(d.scan_time||d.last_scan||'never').replace('T',' ').slice(0,16)}
Cron daily 4h