import psycopg2
test_hash = "★ Sport Gloves | Amphibious (Battle-Scarred)"
postgresql_conn = psycopg2.connect(
                                database="postgres",
                                user="postgres",
                                password="Berufsorientierung1!",
                                host="23.88.122.57",
                                port="5432",
                            )
postgresql_cur = postgresql_conn.cursor()

postgresql_cur.execute(
    "SELECT float FROM sih_floats WHERE market_hash_name = %s ORDER BY float DESC LIMIT 5",
    (
        test_hash,
    ),
)
top5_floats = postgresql_cur.fetchall()
for topfloat in top5_floats:
    print(topfloat[0])