moving info over from personal gitlab to self-hosted gitea

This commit is contained in:
Hex
2025-07-10 12:47:01 -07:00
parent 3426ca535b
commit 7bb0793669

View File

@@ -126,8 +126,7 @@ def smart_make_tags(queues,users,tags,driver):
original_window = driver.current_window_handle
tag_count = count_tags(queues,tags)
for tag in tags:
if found_string(users, tag.text.lower()) == False:
lowest_queue = find_lowest_and_increment(tag_count)
if not found_string(users, tag.text.lower()):
driver.execute_script("arguments[0].scrollIntoView(true);", tag)
tag_href = tag.find_element(By.TAG_NAME, "a").get_attribute("href")
driver.execute_script("window.open(arguments[0]);", tag_href)
@@ -144,9 +143,12 @@ def smart_make_tags(queues,users,tags,driver):
)
finally:
tag_field = driver.find_element(By.ID, "tag_id")
tag_field.send_keys(Keys.END)
tag_field.send_keys("/",lowest_queue)
tag_field.send_keys(Keys.ENTER)
current_tag_value = tag_field.get_attribute("value")
if not found_string(users, current_tag_value):
lowest_queue = find_lowest_and_increment(tag_count)
tag_field.send_keys(Keys.END)
tag_field.send_keys("/",lowest_queue)
tag_field.send_keys(Keys.ENTER)
WebDriverWait(driver,5).until(EC.presence_of_element_located((By.ID,'stepListHeader')))
driver.close()
driver.switch_to.window(original_window)