RohitChandramouli6618 commited on
Commit
fa9b8c7
·
1 Parent(s): dc89155

Rewrite app.py: 3-phase judge dashboard, /validate endpoint, live Phase 1 checks

Browse files
Files changed (1) hide show
  1. server/app.py +2 -1
server/app.py CHANGED
@@ -13,6 +13,7 @@
13
 
14
  import sys
15
  import os
 
16
  sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
17
 
18
  from openenv.core.env_server import create_app
@@ -1112,7 +1113,7 @@ async function runValidation() {
1112
 
1113
  const container = document.getElementById('v-checks');
1114
  container.innerHTML = Object.entries(d.checks).map(([key, val]) => {
1115
- const label = key.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase());
1116
  const cls = val.pass ? 'pass' : 'fail';
1117
  const icon = val.pass ? '✓' : '✗';
1118
  return `<div class="check-item">
 
13
 
14
  import sys
15
  import os
16
+ import re
17
  sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
18
 
19
  from openenv.core.env_server import create_app
 
1113
 
1114
  const container = document.getElementById('v-checks');
1115
  container.innerHTML = Object.entries(d.checks).map(([key, val]) => {
1116
+ label = re.sub("\\b\\w", lambda m: m.group(0).upper(), key.replace("_", " "))
1117
  const cls = val.pass ? 'pass' : 'fail';
1118
  const icon = val.pass ? '✓' : '✗';
1119
  return `<div class="check-item">