mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-19 21:28:26 +02:00
fix: Improve ItemService screenshot management by prioritizing latest timestamped files and ensuring complete deletion.
This commit is contained in:
1 parent
4590273801
commit
97664a4a16
3 files changed
+224
-20
No files matched your search
@@ -14,8 +14,14 @@ Implementing logic to generate unique timestamped filenames for screenshots to b
|
||||
- [x] Verify that `item_service.py` correctly picks up the new files <!-- id: 1 -->
|
||||
- [x] Create verification script `verify_screenshot_update.py` <!-- id: 2 -->
|
||||
- [x] Run verification and confirm fix <!-- id: 3 -->
|
||||
- [x] Modify `ItemService.get_items` to scan filesystem for latest screenshot <!-- id: 4 -->
|
||||
- [x] Update `ItemService.delete_item` to clean up all related screenshots <!-- id: 6 -->
|
||||
- [x] Create `verify_fix_item_service.py` to test the new logic <!-- id: 5 -->
|
||||
|
||||
## Progress Log
|
||||
|
||||
- Identified the issue: `ScraperService` overwrites `item_{id}.png`.
|
||||
- Created implementation plan.
|
||||
- User approved plan.
|
||||
- Implemented filesystem scanning in `ItemService`.
|
||||
- Verified fix with `verify_fix_item_service.py` successfully.
|
||||
Reference in new issue
Block a user