mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-27 16:51:08 +00:00
Compare commits
1 commit
cab8ca81c6
...
fc1052642f
Author | SHA1 | Date | |
---|---|---|---|
fc1052642f |
|
@ -54,8 +54,6 @@ class Connection(SqlConnection):
|
||||||
|
|
||||||
|
|
||||||
def get_config(self, key: str) -> Any:
|
def get_config(self, key: str) -> Any:
|
||||||
key = key.replace('_', '-')
|
|
||||||
|
|
||||||
with self.run('get-config', {'key': key}) as cur:
|
with self.run('get-config', {'key': key}) as cur:
|
||||||
if not (row := cur.one()):
|
if not (row := cur.one()):
|
||||||
return ConfigData.DEFAULT(key)
|
return ConfigData.DEFAULT(key)
|
||||||
|
@ -74,10 +72,10 @@ class Connection(SqlConnection):
|
||||||
field = ConfigData.FIELD(key)
|
field = ConfigData.FIELD(key)
|
||||||
key = field.name.replace('_', '-')
|
key = field.name.replace('_', '-')
|
||||||
|
|
||||||
if key == 'private-key':
|
if key == 'private_key':
|
||||||
self.app.signer = value
|
self.app.signer = value
|
||||||
|
|
||||||
elif key == 'log-level':
|
elif key == 'log_level':
|
||||||
value = logging.LogLevel.parse(value)
|
value = logging.LogLevel.parse(value)
|
||||||
logging.set_level(value)
|
logging.set_level(value)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue