still trying to make the leaderboard
Browse files
    	
        app.py
    CHANGED
    
    | @@ -96,6 +96,9 @@ def write_results(record, result): | |
| 96 | 
             
                record.update(result)
         | 
| 97 | 
             
                record['result_filename'] = record['submission_filename'].strip('.json') + '_results.json'
         | 
| 98 | 
             
                record['evaluated'] = True
         | 
|  | |
|  | |
|  | |
| 99 |  | 
| 100 | 
             
                with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as tmp:
         | 
| 101 | 
             
                    json.dump(record, tmp, indent=2)
         | 
|  | |
| 96 | 
             
                record.update(result)
         | 
| 97 | 
             
                record['result_filename'] = record['submission_filename'].strip('.json') + '_results.json'
         | 
| 98 | 
             
                record['evaluated'] = True
         | 
| 99 | 
            +
                if 'objectives' in record.keys():
         | 
| 100 | 
            +
                    record['objective'] = record.pop('objectives')
         | 
| 101 | 
            +
             | 
| 102 |  | 
| 103 | 
             
                with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as tmp:
         | 
| 104 | 
             
                    json.dump(record, tmp, indent=2)
         | 
 
			

