Skip to content

Commit

Permalink
Update the entity
Browse files Browse the repository at this point in the history
  • Loading branch information
LadislavVasina1 committed Feb 19, 2025
1 parent 597f189 commit fce56c7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions airgun/entities/activationkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,8 @@ def update_ak_host_limit(self, entity_name, host_limit):
view.wait_displayed()
self.browser.plugin.ensure_page_safe()
view.details.host_limit_edit_btn.click()

if host_limit == 'unlimited':
view.details.unlimited_content_host_checkbox.fill(True)
elif host_limit != 'unlimited' and view.details.unlimited_content_host_checkbox.selected:
view.details.unlimited_content_host_checkbox.fill(False)
view.details.unlimited_content_host_checkbox.fill(host_limit == 'unlimited')
if host_limit != 'unlimited':
view.details.host_limit_input.fill(host_limit)
view.details.host_limit_save_btn.click()

Expand Down

0 comments on commit fce56c7

Please sign in to comment.