diff --git a/server.py b/server.py index 23bedd8..b2f101e 100755 --- a/server.py +++ b/server.py @@ -1777,6 +1777,15 @@ def save_quotes_settings(input_settings): except: current_settings = {"feature": "Inspirational Quotes", "speed": "medium", "speed2": "medium", "animation": "up", "title": True, "amount": "3", "quotes": []} + if current_settings['amount'] != input_settings['amount']: + f = open('csv/last_updates.json', 'r') + last_updates = json.load(f) + f.close() + last_updates['quotes']['force'] = True + f = open('csv/last_updates.json', 'w') + json.dump(last_updates, f) + f.close() + current_settings['speed'] = input_settings['speed'].lower() current_settings['speed2'] = input_settings['speed2'].lower() current_settings['animation'] = input_settings['animation'].lower()