فهرست منبع

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