
import os
import psycopg2
from psycopg2.extras import RealDictCursor

MATCH_ID = '8yl78ecnv1fqynawwtf5159uc'

def check():
    try:
        db_url = os.environ.get('DATABASE_URL', 'postgresql://suggestbet:SuGGesT2026SecuRe@localhost:15432/boilerplate_db')
        conn = psycopg2.connect(db_url, cursor_factory=RealDictCursor)
        cursor = conn.cursor()
        
        cursor.execute("SELECT home_team_id, away_team_id, match_name FROM live_matches WHERE id = %s", (MATCH_ID,))
        row = cursor.fetchone()
        print(f"Match Raw Data: {row}")
        
    except Exception as e:
        print(e)

if __name__ == "__main__":
    check()
