File size: 1,914 Bytes
5bfc765
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""
Check upload status for model 5476ea55-7320-47ed-876f-4f63373f73d4
"""
from numerapi import NumerAPI
import os
from pathlib import Path

# Load credentials
env_file = Path('c:/numerai48models/.env')
if env_file.exists():
    with open(env_file, 'rb') as f:
        content = f.read()
    for line in content.decode('utf-8', errors='ignore').split('\n'):
        if '=' in line and not line.startswith('#'):
            key, value = line.split('=', 1)
            os.environ[key.strip()] = value.strip()

NUMERAI_PUBLIC_ID = os.getenv('NUMERAI_PUBLIC_ID', 'F7L5RN6EXNTZWUIZDHPPMUF2QH6KA2A3')
NUMERAI_SECRET_KEY = os.getenv('NUMERAI_SECRET_KEY', '')

print("Checking submissions for Main - Lightweight (5476ea55-7320-47ed-876f-4f63373f73d4)...")

try:
    napi = NumerAPI(public_id=NUMERAI_PUBLIC_ID, secret_key=NUMERAI_SECRET_KEY)
    
    model_id = '5476ea55-7320-47ed-876f-4f63373f73d4'
    
    # Get model info
    print("\nGetting model info...")
    models = napi.get_models()
    model_info = next((m for m in models if m['id'] == model_id), None)
    if model_info:
        print(f"Model name: {model_info.get('name')}")
        print(f"Tournament: {model_info.get('tournament')}")
    
    # Get submissions
    print("\nGetting submissions...")
    submissions = napi.get_submissions(model_id=model_id)
    
    if submissions:
        print(f"\nFound {len(submissions)} submissions")
        print("\nLatest 3 submissions:")
        for i, sub in enumerate(submissions[:3]):
            print(f"\n{i+1}. Round {sub.get('round_number')}:")
            print(f"   Status: {sub.get('status')}")
            print(f"   Submitted: {sub.get('insert_time')}")
            print(f"   Filename: {sub.get('filename')}")
    else:
        print("\nNo submissions found for this model!")
        print("This model may not have uploaded successfully.")
        
except Exception as e:
    print(f"\nError: {e}")