Skip to content

Commit

Permalink
Update __main__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
a3510377 committed Sep 10, 2024
1 parent 8b8b1a9 commit 168d0e2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions make-member-list/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import re
import shutil
from pathlib import Path
from typing import Union
Expand All @@ -8,19 +7,14 @@

ROW_LEN = 2
COLUMN_LEN = 8
ALL_IN_ONE = False
AVATAR_SIZE = 64
FONT_SIZE = 20
RIGHT_PADDING = 188
BOTTOM_PADDING = 20

FORCE_DOWNLOAD = False

UUID_MATCH = re.compile(
r"([0-9a-f]{8})(?:-|)([0-9a-f]{4})(?:-|)"
r"(4[0-9a-f]{3})(?:-|)([89ab][0-9a-f]{3})(?:-|)([0-9a-f]{12})"
)


MEMBERS_TABLE = [
"-Zonzer",
"-Fallen_Monkey",
Expand Down Expand Up @@ -128,4 +122,7 @@ def summon_member_list(images: list[Path], output_path: Union[str, Path] = "out"
image.unlink()
images.remove(image)

if ALL_IN_ONE:
COLUMN_LEN = round(len(images) / ROW_LEN)

summon_member_list(images, Path("out") / dir.name)

0 comments on commit 168d0e2

Please sign in to comment.