-
echel0n authored
Moved TVShow model into MainDB init, created separate TVShow object that populates from TVShow model data. Moved TVEpisode model into MainDB init, created separate TVEpisode object that populates from TVEpisode model data. Override SQLAlchemy commit method with custom context method. Removed database decorators, replaced with session variable inside functions. Refactored TVShow and TVEpisode objects to proxy attribute requests to SQLAlchemy model object data. Added any missing TVShow and TVEpisode database session commit calls. Refactored TVEpisode <> TVShow episodes, imdb_info, and show relationships to object properties.
bb32cb4c