소스 검색

fix bug when starting first pattern

Tuan Nguyen 1 년 전
부모
커밋
e1b39d8432
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -386,7 +386,7 @@ def run_theta_rho_file(file_path, schedule_hours=None):
                             # Update execution progress with formatted ETA
                             execution_progress = (i + batch_size, total_coordinates, estimated_remaining_time)
                             break
-                        elif response.startswith("IGNORE"):  # Retry the previous batch
+                        elif response.startswith("IGNORE") and i != 0:  # Retry the previous batch
                             print("Received IGNORE. Resending the previous batch...")
                             # Calculate the previous batch indices
                             prev_start = max(0, i - batch_size)  # Ensure we don't go below 0