Skip to content

Commit

Permalink
Limit number of suggested EMD objects
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislavsulc committed Feb 21, 2024
1 parent 11b2f66 commit b97fceb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webapi/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,10 @@ def setExecutionInputs(weid):
form += '<td>'
form += '<select name="obo_id_' + obo.get('Name', '') + '" onchange="this.form.submit()">'
form += '<option value="">-</option>'
for option in restApiControl.getEDMEntityIDs(obo.get('DBName', ''), obo.get('EDMEntity', ''), obo.get('OptionsFilter', None)):
options = restApiControl.getEDMEntityIDs(obo.get('DBName', ''), obo.get('EDMEntity', ''), obo.get('OptionsFilter', None))
if len(options) > 100:
options = options[0:100]
for option in options:
form += '<option value="' + option + '" ' + ('selected' if obo_id == option else '') + '>' + option + '</option>'
form += '</select>'
form += '</td>'
Expand Down

0 comments on commit b97fceb

Please sign in to comment.