Don't select keys when saving

This commit is contained in:
Reid 'arrdem' McKenzie 2022-11-26 22:17:24 -07:00
parent 9f8c79a5ee
commit 21a524743c

View file

@ -197,17 +197,5 @@ class RelayConfig(DotDict):
return True
def save(self):
config = {
"db": self["db"],
"listen": self.listen,
"port": self.port,
"note": self.note,
"push_limit": self.push_limit,
"ap": {key: self[key] for key in self.apkeys},
"cache": {key: self[key] for key in self.cachekeys},
}
with open(self._path, "w") as fd:
yaml.dump(config, fd, sort_keys=False)
return config
yaml.dump(self, fd, sort_keys=False)