Ignore:
Timestamp:
04/28/20 14:43:48 (5 years ago)
Author:
bart
Message:

Enhanced tournament runner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/webapp/utilstable.xhtml

    r12 r13  
    44<title>Show tournament results table</title>
    55<link rel="stylesheet" type="text/css" href="style.css" />
    6 <script src="Chart.min_2.8.0.js"></script>
    76</head>
    87<style>
     
    150149        /**
    151150        This function returns immediately and will add the profile to the profiles dictionary some time later.
     151        @param profurl the  profile URL may have ?partial filter.
    152152        @param callwhendone function is called (without arguments) when profiles contains no pending anymore
    153153        */
    154         function getProfile(profileurl, callwhendone) {
    155                 profiles[profileurl]='pending';
    156                
    157                         var profileurl1 = profileurl; // idem but possibly without query
    158                 if (SHAOP) {
    159                         profileurl1 = profileurl1.split('?',1)[0]; // hacky, remove complete query.
    160                 }
    161 
    162                         setStatus("fetching profile "+profileurl1);
     154        function getProfile(profurl, callwhendone) {
     155                profiles[profurl]='pending'; // store ORIGINAL URL
     156                var     profileurl = profurl.split('?',1)[0]; // hacky, remove complete query.
     157
     158                        setStatus("fetching profile "+profileurl);
    163159                        var ws;
    164160            if ('WebSocket' in window) {
    165                 ws = new WebSocket(profileurl1);
     161                ws = new WebSocket(profileurl);
    166162            } else if ('MozWebSocket' in window) {
    167                 ws = new MozWebSocket(profileurl1);
     163                ws = new MozWebSocket(profileurl);
    168164            } else {
    169165                setStatus('Fatal: WebSocket is not supported by this browser. Please use a newer browser');
     
    174170                var profile = JSON.parse(event.data);
    175171                if (profile['LinearAdditiveUtilitySpace']==undefined) {
    176                     setStatus('Fatal: profile '+uri+" does not contain a LinearAdditiveUtilitySpace.");
     172                    setStatus('Fatal: profile '+profileurl+" does not contain a LinearAdditiveUtilitySpace.");
    177173                    return;
    178174                }
    179175
    180                 profiles[profileurl]=profile['LinearAdditiveUtilitySpace'];
     176                profiles[profurl]=profile['LinearAdditiveUtilitySpace'];
    181177               
    182178                checkAllProfiles(callwhendone);
Note: See TracChangeset for help on using the changeset viewer.