Closed dreulavelle closed 1 week ago
The changes in this pull request involve updates to the Program
class in src/program/program.py
and the MediaItem
class in src/program/media/item.py
. The _reindex_ongoing
method has been renamed to _update_ongoing
, focusing on updating ongoing and unreleased items with simplified logic and improved logging. Additionally, the store_state
method in MediaItem
now returns a tuple of states, with enhancements in the subclasses to ensure consistent state storage across the hierarchy.
File | Change Summary |
---|---|
src/program/program.py | Renamed _reindex_ongoing to _update_ongoing with altered functionality; simplified logic; updated logging; modified _schedule_functions to call the new method; removed unused SQLAlchemy imports; enhanced error handling with clearer logging. |
src/program/media/item.py | Changed store_state return type from None to tuple[States, States] ; updated method docstring; subclasses now call superclass store_state and iterate over child objects to store states. |
In the code where bunnies play,
A method's name has changed today.
From reindexing to updating bright,
Ongoing states now shine with light.
With logs that cheer and imports few,
Our program hops with joy anew! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Pull Request Check List
Resolves: #issue-number-here
Description:
Summary by CodeRabbit
New Features
Bug Fixes
Refactor