mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
i2p: Minor flake8 and yapf fixes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
6 files changed
+57
-35
No files matched your search
+4
-7
@@ -43,7 +43,8 @@ def parse_arguments():
|
||||
'add-favorite', help='Add an eepsite to the list of favorites')
|
||||
subparser.add_argument('--name', help='Name of the entry', required=True)
|
||||
subparser.add_argument('--url', help='URL of the entry', required=True)
|
||||
subparser.add_argument('--description', help='short description', required=False)
|
||||
subparser.add_argument('--description', help='Short description',
|
||||
required=False)
|
||||
subparser.add_argument('--icon', help='URL to icon', required=False)
|
||||
|
||||
subparser = subparsers.add_parser('set-tunnel-property',
|
||||
@@ -92,12 +93,8 @@ def subcommand_add_favorite(arguments):
|
||||
url = arguments.url
|
||||
|
||||
editor = RouterEditor()
|
||||
editor.read_conf().add_favorite(
|
||||
arguments.name,
|
||||
url,
|
||||
arguments.description,
|
||||
arguments.icon
|
||||
).write_conf()
|
||||
editor.read_conf().add_favorite(arguments.name, url, arguments.description,
|
||||
arguments.icon).write_conf()
|
||||
|
||||
print('Added {} to favorites'.format(url))
|
||||
|
||||
|
||||
Reference in new issue
Block a user