Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jan 12, 2025
1 parent 5d435c3 commit 7956ab8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 1 addition & 3 deletions server/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ def __init__(
self.imported_by = ""

self.server_variant = SERVER_VARIANTS[
("_" if variant[0].isdigit() else "") +
variant +
("960" if chess960 else "")
("_" if variant[0].isdigit() else "") + variant + ("960" if chess960 else "")
]

self.berserk_time = self.base * 1000 * 30
Expand Down
10 changes: 8 additions & 2 deletions server/variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,14 @@ def server_name(self):
ServerVariants.BUGHOUSE960,
)

SERVER_VARIANTS = {variant.server_name: variant for variant in ServerVariants if variant not in OLD_VARIANTS}
VARIANT_ICONS = {variant.server_name: variant.value.icon for variant in ServerVariants if variant not in OLD_VARIANTS}
SERVER_VARIANTS = {
variant.server_name: variant for variant in ServerVariants if variant not in OLD_VARIANTS
}
VARIANT_ICONS = {
variant.server_name: variant.value.icon
for variant in ServerVariants
if variant not in OLD_VARIANTS
}

# Remove new variants on prod site until they stabilize
if PROD:
Expand Down

0 comments on commit 7956ab8

Please sign in to comment.