-
-
Notifications
You must be signed in to change notification settings - Fork 247
[HOTFIX] Fix uploading cover art manually #2094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This hotfix addresses manual cover art uploading functionality by refactoring the image handling logic and updating return types to use None
instead of empty strings. The changes consolidate artwork processing into a dedicated method and ensure consistent null handling across the filesystem resource handlers.
- Refactored manual artwork upload handling to use a new centralized
store_artwork
method - Changed return types from empty strings to
None
for better null handling consistency - Cleaned up debug print statements and unused imports
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
backend/handler/metadata/igdb_handler.py |
Removed debug print statement |
backend/handler/filesystem/tests/test_resources_handler.py |
Updated test assertions to expect None instead of empty strings and fixed method calls |
backend/handler/filesystem/resources_handler.py |
Changed return types to use None , added new store_artwork method, refactored build_artwork_path |
backend/handler/filesystem/base_handler.py |
Removed debug print statement |
backend/endpoints/rom.py |
Refactored artwork handling to use new store_artwork method, removed unused PIL import |
backend/endpoints/collections.py |
Updated to use new store_artwork method, removed unused PIL import |
fe03131
to
73545ff
Compare
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
Checklist
Please check all that apply.