15 lines
323 B
Python
15 lines
323 B
Python
|
from vcinema_utils.Viewing import Viewing
|
||
|
|
||
|
|
||
|
class VCinemaFilm:
|
||
|
|
||
|
def __init__(self, name, imdb_id):
|
||
|
self.name = name
|
||
|
self.imdb_id = imdb_id
|
||
|
self.viewings = []
|
||
|
|
||
|
def add_viewing(self, date, season, rating):
|
||
|
viewing = Viewing(date, season, rating)
|
||
|
|
||
|
self.viewings.append(viewing)
|