INNER CODE UNIT · Python

fetchMtime

yohey-w/multi-agent-shogun · scripts/dashboard-viewer.py:163

    async function fetchMtime() {
      const res = await fetch('/api/mtime');
      const data = await res.json();
      return data.mtime;
    }

    async function fetchDashboard() {
      const res = await fetch('/api/dashboard');
      return await res.text();
    }

    async function render() {
      const md = await fetchDashboard();
      contentEl.innerHTML = marked.parse(md);
    }

    function setStatus(ok, text) {
      dot.className = 'dot' + (ok ? '' : ' stale');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…