Outfits

This commit is contained in:
zhbaor 2022-10-07 11:37:25 +08:00
parent 775c833f28
commit 3e6871fb34
127 changed files with 17420 additions and 2 deletions

View file

@ -16,6 +16,10 @@ with sync_playwright() as p:
with db_session:
for m in [*Melee.select(), *Shield.select(), *Ranged.select()]:
print(f"rendering {m.name}...")
page.goto(f"http://localhost:8080/{m.name}")
page.goto(f"http://localhost:8080/weapon/{m.name}")
page.locator(".container").screenshot(path=f"./output/{m.name}.png")
for o in Outfit.select():
print(f"rendering {o.name}...")
page.goto(f"http://localhost:8080/outfit/{o.name}")
page.locator(".container").screenshot(path=f"./output/{o.name}.png")
browser.close()