Update vision_analyzer.py
Browse files- vision_analyzer.py +2 -2
vision_analyzer.py
CHANGED
|
@@ -357,7 +357,7 @@ def main_processing_loop(start_index: int = 0):
|
|
| 357 |
try:
|
| 358 |
# Load state
|
| 359 |
processed_rars = load_json_state(PROCESS_STATE_FILE, {"processed_rars": []})["processed_rars"]
|
| 360 |
-
download_state = load_json_state(DOWNLOAD_STATE_FILE, {"next_download_index":
|
| 361 |
|
| 362 |
# Use start_index if provided, otherwise use the saved state
|
| 363 |
next_index = start_index if start_index > 0 else download_state["next_download_index"]
|
|
@@ -422,7 +422,7 @@ def main_processing_loop(start_index: int = 0):
|
|
| 422 |
processing_status["failed_files"] += 1
|
| 423 |
|
| 424 |
# Update download state for next run
|
| 425 |
-
next_index +=
|
| 426 |
save_json_state(DOWNLOAD_STATE_FILE, {"next_download_index": next_index})
|
| 427 |
|
| 428 |
# Status update
|
|
|
|
| 357 |
try:
|
| 358 |
# Load state
|
| 359 |
processed_rars = load_json_state(PROCESS_STATE_FILE, {"processed_rars": []})["processed_rars"]
|
| 360 |
+
download_state = load_json_state(DOWNLOAD_STATE_FILE, {"next_download_index": 0})
|
| 361 |
|
| 362 |
# Use start_index if provided, otherwise use the saved state
|
| 363 |
next_index = start_index if start_index > 0 else download_state["next_download_index"]
|
|
|
|
| 422 |
processing_status["failed_files"] += 1
|
| 423 |
|
| 424 |
# Update download state for next run
|
| 425 |
+
next_index += 1
|
| 426 |
save_json_state(DOWNLOAD_STATE_FILE, {"next_download_index": next_index})
|
| 427 |
|
| 428 |
# Status update
|