Commit 2876592
committed
Fix: Definitively resolve UnboundLocalError for timestamp tracking
- Addresses a persistent `UnboundLocalError` related to `latest_overall_review_activity_dt`.
- While the variable was initialized at the top of `main()`, to ensure robust scoping within the loop that processes overall reviews, a temporary variable (`temp_latest_overall_review_dt`) is now used for accumulating the latest timestamp within that specific loop.
- The main `latest_overall_review_activity_dt` is then updated from this temporary variable if any overall review timestamps were processed.
- This change ensures the variable is always defined before use in the conditional check that was causing the error.
(This commit also includes prior changes for removing the absl-py dependency and refactoring logging, which were part of the same active development session.)1 parent 6912996 commit 2876592
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
433 | 436 | | |
434 | 437 | | |
435 | 438 | | |
436 | 439 | | |
437 | 440 | | |
438 | 441 | | |
439 | | - | |
| 442 | + | |
440 | 443 | | |
441 | 444 | | |
442 | 445 | | |
443 | 446 | | |
444 | 447 | | |
445 | 448 | | |
446 | 449 | | |
447 | | - | |
448 | | - | |
| 450 | + | |
| 451 | + | |
449 | 452 | | |
450 | 453 | | |
451 | 454 | | |
| |||
462 | 465 | | |
463 | 466 | | |
464 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
465 | 473 | | |
466 | 474 | | |
467 | 475 | | |
| |||
0 commit comments