@@ -4,7 +4,7 @@ let problemsData = {
44 vicutils : [ ]
55} ;
66
7- const main = document . getElementById ( "main" )
7+ const main = document . getElementById ( "main" )
88
99
1010async function scanForProblems ( ) {
@@ -23,11 +23,11 @@ async function scanForProblems() {
2323 const problems = [ ] ;
2424
2525 if ( platform === 'vicutils' ) {
26- // For vicutils, look for generated .html files
26+ // For vicutils, ONLY look for .html files (ignore Python files)
2727 for ( const item of items ) {
2828 if ( item . type === 'file' && item . name . endsWith ( '.html' ) ) {
2929 problems . push ( {
30- name : item . name , // Keep the full filename
30+ name : item . name ,
3131 displayName : item . name . replace ( '.html' , '' ) . replace ( / _ / g, ' ' ) ,
3232 type : 'html' ,
3333 hasPage : true ,
@@ -62,7 +62,11 @@ async function scanForProblems() {
6262 ) ;
6363 const hasPng = pngFiles . length > 0 ;
6464
65- const pyFiles = files . filter ( file => file . name . endsWith ( '.vn.py' ) ) ;
65+ // FIXED: Only select .vn.py files that do NOT contain .shortest.
66+ const pyFiles = files . filter ( file =>
67+ file . name . endsWith ( '.vn.py' ) &&
68+ ! file . name . includes ( '.shortest.' )
69+ ) ;
6670 const hasPy = pyFiles . length > 0 ;
6771
6872 let type = 'code-only' ;
@@ -402,4 +406,4 @@ window.addEventListener('hashchange', () => {
402406 } else if ( hash === '' ) {
403407 location . reload ( ) ; // Reload to show main page
404408 }
405- } ) ;
409+ } ) ;
0 commit comments