spells-mtg 0.10.1__tar.gz → 0.10.2__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.10.1 → spells_mtg-0.10.2}/PKG-INFO +1 -1
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/pyproject.toml +1 -1
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/draft_data.py +5 -4
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/manifest.py +1 -1
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/LICENSE +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/README.md +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/__init__.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/cache.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/cards.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/columns.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/config.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/enums.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/extension.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/external.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/filter.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/log.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/schema.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/spells/utils.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/tests/__init__.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/tests/filter_test.py +0 -0
- {spells_mtg-0.10.1 → spells_mtg-0.10.2}/tests/utils_test.py +0 -0
|
@@ -407,7 +407,11 @@ def _base_agg_df(
|
|
|
407
407
|
for c in cols_for_view
|
|
408
408
|
if m.col_def_map[c].col_type in (ColType.PICK_SUM, ColType.GAME_SUM)
|
|
409
409
|
)
|
|
410
|
-
|
|
410
|
+
name_sum_cols = tuple(
|
|
411
|
+
c for c in cols_for_view if m.col_def_map[c].col_type == ColType.NAME_SUM
|
|
412
|
+
)
|
|
413
|
+
|
|
414
|
+
if sum_cols or not name_sum_cols:
|
|
411
415
|
# manifest will verify that GAME_SUM manifests do not use NAME grouping
|
|
412
416
|
name_col_tuple = (
|
|
413
417
|
(pl.col(ColName.PICK).alias(ColName.NAME),) if is_name_gb else ()
|
|
@@ -418,9 +422,6 @@ def _base_agg_df(
|
|
|
418
422
|
grouped = sum_col_df.group_by(group_by) if group_by else sum_col_df
|
|
419
423
|
join_dfs.append(grouped.sum().collect(streaming=use_streaming))
|
|
420
424
|
|
|
421
|
-
name_sum_cols = tuple(
|
|
422
|
-
c for c in cols_for_view if m.col_def_map[c].col_type == ColType.NAME_SUM
|
|
423
|
-
)
|
|
424
425
|
for col in name_sum_cols:
|
|
425
426
|
names = get_names(set_code)
|
|
426
427
|
expr = tuple(pl.col(f"{col}_{name}").alias(name) for name in names)
|
|
@@ -208,7 +208,7 @@ def create(
|
|
|
208
208
|
else:
|
|
209
209
|
needed_views = needed_views.union({View.GAME, View.DRAFT})
|
|
210
210
|
|
|
211
|
-
view_cols = {v: view_cols
|
|
211
|
+
view_cols = {v: view_cols.get(v, frozenset({ColName.PICK})) for v in needed_views}
|
|
212
212
|
|
|
213
213
|
return Manifest(
|
|
214
214
|
columns=cols,
|
|
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
|