Spitfire1970 commited on
Commit ·
047b139
1
Parent(s): 56bd36c
change
Browse files- handler.py +3 -2
handler.py
CHANGED
|
@@ -280,9 +280,10 @@ class EndpointHandler():
|
|
| 280 |
|
| 281 |
for move in ordered_moves:
|
| 282 |
print('here1')
|
| 283 |
-
board.
|
|
|
|
| 284 |
print('here2')
|
| 285 |
-
url = f"https://lichess.org/api/cloud-eval?fen={
|
| 286 |
headers = {"Accept": "application/json"}
|
| 287 |
response = requests.get(url, headers=headers)
|
| 288 |
if response.status_code == 404 or "pvs" not in response.json():
|
|
|
|
| 280 |
|
| 281 |
for move in ordered_moves:
|
| 282 |
print('here1')
|
| 283 |
+
test_board = board.copy()
|
| 284 |
+
test_board.push(board.parse_san(move_sans[move]))
|
| 285 |
print('here2')
|
| 286 |
+
url = f"https://lichess.org/api/cloud-eval?fen={test_board.fen()}"
|
| 287 |
headers = {"Accept": "application/json"}
|
| 288 |
response = requests.get(url, headers=headers)
|
| 289 |
if response.status_code == 404 or "pvs" not in response.json():
|