OpenBB icon indicating copy to clipboard operation
OpenBB copied to clipboard

[Bug] `account\list` displays `No routines found.` but opens a windows with 3 default routines

Open dot-agi opened this issue 2 years ago • 3 comments

Describe the bug I have not set any routine in my account. So executing accounts\list command displays the proper output -

image

However, it opens a window that displays 3 routines configured -

openbb_Default_routines_20230415_154016

dot-agi avatar Apr 15 '23 15:04 dot-agi

On my.openbb.dev profile, I see these as default routines -

image

Then the output should not be No routines found.. May I know what's the expected output for this command so that I can develop a fix for it?

dot-agi avatar Apr 16 '23 02:04 dot-agi

Thanks for this issue, @the-praxs! This is because the routines are not refreshed in memory and you need to restart in order for them to be recognized. The choices for the exe command need to refresh after.

deeleeramone avatar Apr 16 '23 03:04 deeleeramone

Thanks for this issue, @the-praxs! This is because the routines are not refreshed in memory and you need to restart in order for them to be recognized. The choices for the exe command need to refresh after.

Gotcha. I noticed in the code that even if one has personal routines, it would still display the default routines.

image

The last 3 lines are out of the conditional block so when the if clause runs, it will also display the default routines afterward.

dot-agi avatar Apr 17 '23 06:04 dot-agi