Don't select keys when saving

This commit is contained in:
Reid 'arrdem' McKenzie 2022-11-26 22:17:24 -07:00
parent 5708d44a6e
commit 8e53c8e509

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)