mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1547 from YunoHost/ci-format-dev
[CI] Format code with Black
This commit is contained in:
commit
7e88230cd1
1 changed files with 8 additions and 4 deletions
|
@ -656,7 +656,11 @@ class ConfigPanel:
|
||||||
# e.g. apps may write `echo 'value: "foobar"'` in the config file (which is more intuitive that `echo 'current_value: "foobar"'`
|
# e.g. apps may write `echo 'value: "foobar"'` in the config file (which is more intuitive that `echo 'current_value: "foobar"'`
|
||||||
# For example hotspot used it...
|
# For example hotspot used it...
|
||||||
# See https://github.com/YunoHost/yunohost/pull/1546
|
# See https://github.com/YunoHost/yunohost/pull/1546
|
||||||
if isinstance(value, dict) and "value" in value and "current_value" not in value:
|
if (
|
||||||
|
isinstance(value, dict)
|
||||||
|
and "value" in value
|
||||||
|
and "current_value" not in value
|
||||||
|
):
|
||||||
value["current_value"] = value["value"]
|
value["current_value"] = value["value"]
|
||||||
|
|
||||||
# In general, the value is just a simple value.
|
# In general, the value is just a simple value.
|
||||||
|
|
Loading…
Add table
Reference in a new issue