Don't select keys when saving
This commit is contained in:
parent
9f8c79a5ee
commit
21a524743c
1 changed files with 1 additions and 13 deletions
|
@ -197,17 +197,5 @@ class RelayConfig(DotDict):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def save(self):
|
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:
|
with open(self._path, "w") as fd:
|
||||||
yaml.dump(config, fd, sort_keys=False)
|
yaml.dump(self, fd, sort_keys=False)
|
||||||
|
|
||||||
return config
|
|
||||||
|
|
Loading…
Reference in a new issue