spells-mtg 0.11.6__tar.gz → 0.11.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of spells-mtg might be problematic. Click here for more details.
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/PKG-INFO +1 -1
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/pyproject.toml +1 -1
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/card_data_files.py +4 -20
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/config.py +1 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/LICENSE +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/README.md +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/.ruff_cache/.gitignore +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/.ruff_cache/0.8.6/17785301476771359756 +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/.ruff_cache/CACHEDIR.TAG +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/__init__.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/cache.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/cards.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/columns.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/draft_data.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/enums.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/extension.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/external.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/filter.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/log.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/manifest.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/schema.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/utils.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/tests/__init__.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/tests/filter_test.py +0 -0
- {spells_mtg-0.11.6 → spells_mtg-0.11.7}/tests/utils_test.py +0 -0
|
@@ -18,12 +18,6 @@ DECK_COLOR_DATA_TEMPLATE = (
|
|
|
18
18
|
"{user_group_param}&start_date={start_date_str}&end_date={end_date_str}&combine_splash=true"
|
|
19
19
|
)
|
|
20
20
|
|
|
21
|
-
START_DATE_MAP = {
|
|
22
|
-
"DFT": dt.date(2025, 2, 11),
|
|
23
|
-
"TDM": dt.date(2025, 4, 8),
|
|
24
|
-
"FIN": dt.date(2025, 6, 10),
|
|
25
|
-
}
|
|
26
|
-
|
|
27
21
|
ratings_col_defs = {
|
|
28
22
|
ColName.NAME: pl.col("name").cast(pl.String),
|
|
29
23
|
ColName.COLOR: pl.col("color").cast(pl.String),
|
|
@@ -59,16 +53,11 @@ deck_color_col_defs = {
|
|
|
59
53
|
|
|
60
54
|
def deck_color_df(
|
|
61
55
|
set_code: str,
|
|
56
|
+
start_date: dt.date,
|
|
57
|
+
end_date: dt.date,
|
|
62
58
|
format: str = "PremierDraft",
|
|
63
59
|
player_cohort: str = "all",
|
|
64
|
-
start_date: dt.date | None = None,
|
|
65
|
-
end_date: dt.date | None = None,
|
|
66
60
|
):
|
|
67
|
-
if start_date is None:
|
|
68
|
-
start_date = START_DATE_MAP[set_code]
|
|
69
|
-
if end_date is None:
|
|
70
|
-
end_date = dt.date.today() - dt.timedelta(days=1)
|
|
71
|
-
|
|
72
61
|
target_dir, filename = cache.deck_color_file_path(
|
|
73
62
|
set_code,
|
|
74
63
|
format,
|
|
@@ -120,17 +109,12 @@ def deck_color_df(
|
|
|
120
109
|
|
|
121
110
|
def base_ratings_df(
|
|
122
111
|
set_code: str,
|
|
112
|
+
start_date: dt.date,
|
|
113
|
+
end_date: dt.date,
|
|
123
114
|
format: str = "PremierDraft",
|
|
124
115
|
player_cohort: str = "all",
|
|
125
116
|
deck_colors: str | list[str] = "any",
|
|
126
|
-
start_date: dt.date | None = None,
|
|
127
|
-
end_date: dt.date | None = None,
|
|
128
117
|
) -> pl.DataFrame:
|
|
129
|
-
if start_date is None:
|
|
130
|
-
start_date = START_DATE_MAP[set_code]
|
|
131
|
-
if end_date is None:
|
|
132
|
-
end_date = dt.date.today() - dt.timedelta(days=1)
|
|
133
|
-
|
|
134
118
|
if isinstance(deck_colors, str):
|
|
135
119
|
deck_colors = [deck_colors]
|
|
136
120
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|