mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
reduce some code
This commit is contained in:
@@ -130,10 +130,7 @@ class AccountController(BaseController):
|
||||
if ns_parser:
|
||||
response = Hub.fetch_user_configs(User.get_session())
|
||||
if response:
|
||||
configs = json.loads(response.content)
|
||||
configs.pop("email", None)
|
||||
|
||||
configs_diff = get_diff(configs=configs)
|
||||
configs_diff = get_diff(configs=json.loads(response.content))
|
||||
if configs_diff:
|
||||
i = console.input(
|
||||
"\nDo you want to overwrite your local configurations "
|
||||
|
||||
Reference in New Issue
Block a user