Skip to content

Commit

Permalink
fix sequence bug
Browse files Browse the repository at this point in the history
  • Loading branch information
thearyadev committed Apr 16, 2024
1 parent 415b69a commit d674662
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from rich import print

def click_focus():
pg.moveTo(122, 418)
time.sleep(0.5)
pg.click(122, 418)

def click_next_page():
Expand Down Expand Up @@ -62,10 +64,11 @@ def click_role_dropdown_support():


def collect_screens(role, region):
time.sleep(1)
for i in range(50):
print(f"Role: {role} Region: {region} Page: {i + 1} ", end="\r")
click_focus()
pg.screenshot().save(f"./tmp/{role}-{region}-{i + 1}.png")
pg.screenshot().save(f"./assets/leaderboard_images/{role}-{region}-{i + 1}.png")
time.sleep(1.5)
click_next_page()

Expand Down

0 comments on commit d674662

Please sign in to comment.