Skip to content

Commit

Permalink
feat: New load code in object
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan committed Oct 16, 2024
1 parent e2d8b1a commit e023ad3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion upsonic_on_prem/dash/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,12 @@ def control_element(request, id):

using_code = ""
if version == None:
using_code = f'upsonic.load("{id}")()'
first_thing = id.split(".")[0]
using_code = f'''
{first_thing} = upsonic.load_module("{first_thing}")
{id}()
'''
else:
using_code = f'upsonic.load("{id}", version="{version}")()'

Expand Down

0 comments on commit e023ad3

Please sign in to comment.