Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion julia_src/Manifest.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions reoptjl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8427,6 +8427,7 @@ def filter_none_and_empty_array(d:dict):

d = dict()
d["user_uuid"] = meta.user_uuid
d["portfolio_uuid"] = meta.portfolio_uuid
d["api_key"] = meta.api_key
d["Settings"] = filter_none_and_empty_array(meta.Settings.dict)
d["Financial"] = filter_none_and_empty_array(meta.FinancialInputs.dict)
Expand Down
10 changes: 9 additions & 1 deletion reoptjl/src/run_jump_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ def run_jump_model(run_uuid):
name = 'run_jump_model'
data = get_input_dict_from_run_uuid(run_uuid)
user_uuid = data.get('user_uuid')

# data['Settings']['name'] = data.get('description', "")
if data.get('webtool_uuid') not in [None, ""]:
data['Settings']['webtool_run'] = True
else:
data['Settings']['direct_api_run'] = True
data['Settings']['webtool_user_uuid'] = user_uuid
data['Settings']['webtool_portfolio_uuid'] = data.get('portfolio_uuid', "")
data['Settings']['api_run_uuid'] = run_uuid
print("data['Settings'] = ", data['Settings'])
data.pop('user_uuid',None) # Remove user uuid from inputs dict to avoid downstream errors

# can uncomment for debugging
Expand Down
Loading