diff --git a/recommendation_engine.py b/recommendation_engine.py index ab0f3cc..0fdf31e 100644 --- a/recommendation_engine.py +++ b/recommendation_engine.py @@ -47,12 +47,12 @@ class Engine: 'screenings': {'locked': True, 'value': 2} }, 'globalKeywords': {}, - 'gridChange': { - 'nextClip': {'locked': False, 'value': 4}, - 'nextPlaylist': {'locked': False, 'value': 4}, - 'staySame': {'locked': False, 'value': 8} - - } + } + if 'gridChange' not in self.state: + self.state['gridChange'] = { + 'nextClip': {'locked': False, 'value': 4}, + 'nextPlaylist': {'locked': False, 'value': 4}, + 'staySame': {'locked': False, 'value': 8} } self.update_keywords()