Save configs when they change. Fixes #95

This commit is contained in:
2017-01-14 06:11:41 -06:00
parent 6bb534d250
commit 4d5de6ca69
5 changed files with 26 additions and 8 deletions

View File

@@ -76,4 +76,5 @@ class userActionsController(object):
return
client = re.sub(r"(?s)<.*?>", "", tweet["source"])
if client not in self.session.settings["twitter"]["ignored_clients"]:
self.session.settings["twitter"]["ignored_clients"].append(client)
self.session.settings["twitter"]["ignored_clients"].append(client)
self.session.settings.write()