Skip to content

Commit

Permalink
fix!: Fix weekday to comply with Python standard
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Jun 16, 2024
1 parent d54f31d commit 91d4b05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
12 changes: 11 additions & 1 deletion ambr/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__all__ = ("AUDIO_LANGUAGES", "PERCENTAGE_FIGHT_PROPS")
__all__ = ("AUDIO_LANGUAGES", "PERCENTAGE_FIGHT_PROPS", "WEEKDAYS")

PERCENTAGE_FIGHT_PROPS = {
"FIGHT_PROP_HP_PERCENT",
Expand Down Expand Up @@ -26,3 +26,13 @@
}

AUDIO_LANGUAGES = ("EN", "CHS", "JP", "KR")

WEEKDAYS = {
"monday": 0,
"tuesday": 1,
"wednesday": 2,
"thursday": 3,
"friday": 4,
"saturday": 5,
"sunday": 6,
}
11 changes: 1 addition & 10 deletions ambr/models/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from pydantic import BaseModel, Field, field_validator

from ..constants import WEEKDAYS
from ..utils import remove_html_tags

__all__ = (
Expand All @@ -11,16 +12,6 @@
"MaterialSource",
)

WEEKDAYS = {
"monday": 1,
"tuesday": 2,
"wednesday": 3,
"thursday": 4,
"friday": 5,
"saturday": 6,
"sunday": 0,
}


class MaterialRecipe(BaseModel):
icon: str
Expand Down

0 comments on commit 91d4b05

Please sign in to comment.