spells-mtg 0.7.4__py3-none-any.whl → 0.7.5__py3-none-any.whl
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/columns.py +2 -0
- spells/draft_data.py +8 -1
- spells/manifest.py +5 -5
- {spells_mtg-0.7.4.dist-info → spells_mtg-0.7.5.dist-info}/METADATA +1 -1
- {spells_mtg-0.7.4.dist-info → spells_mtg-0.7.5.dist-info}/RECORD +8 -8
- {spells_mtg-0.7.4.dist-info → spells_mtg-0.7.5.dist-info}/WHEEL +0 -0
- {spells_mtg-0.7.4.dist-info → spells_mtg-0.7.5.dist-info}/entry_points.txt +0 -0
- {spells_mtg-0.7.4.dist-info → spells_mtg-0.7.5.dist-info}/licenses/LICENSE +0 -0
spells/columns.py
CHANGED
spells/draft_data.py
CHANGED
|
@@ -538,7 +538,14 @@ def summon(
|
|
|
538
538
|
), "What happened? We mean to use one of the sets manifest, it shouldn't matter which."
|
|
539
539
|
|
|
540
540
|
if m.group_by:
|
|
541
|
-
|
|
541
|
+
gb = m.group_by
|
|
542
|
+
# an agg may depend on some card column that hasn't been explicitly requested, but can be safely
|
|
543
|
+
# depended on if we are grouping by name
|
|
544
|
+
if ColName.NAME in m.group_by and View.CARD in m.view_cols:
|
|
545
|
+
for col in m.view_cols[View.CARD]:
|
|
546
|
+
if col not in m.group_by:
|
|
547
|
+
gb = tuple([*gb, col])
|
|
548
|
+
full_agg_df = full_agg_df.group_by(gb).sum()
|
|
542
549
|
else:
|
|
543
550
|
full_agg_df = full_agg_df.sum()
|
|
544
551
|
|
spells/manifest.py
CHANGED
|
@@ -163,14 +163,14 @@ def create(
|
|
|
163
163
|
group_by: list[str] | None = None,
|
|
164
164
|
filter_spec: dict | None = None,
|
|
165
165
|
):
|
|
166
|
-
gbs = (
|
|
167
|
-
(ColName.NAME, ColName.COLOR, ColName.RARITY)
|
|
168
|
-
if group_by is None
|
|
169
|
-
else tuple(group_by)
|
|
170
|
-
)
|
|
166
|
+
gbs = (ColName.NAME,) if group_by is None else tuple(group_by)
|
|
171
167
|
|
|
172
168
|
if columns is None:
|
|
173
169
|
cols = tuple(spells.columns.default_columns)
|
|
170
|
+
if ColName.NAME not in gbs:
|
|
171
|
+
cols = tuple(
|
|
172
|
+
col for col in cols if col not in (ColName.COLOR, ColName.RARITY)
|
|
173
|
+
)
|
|
174
174
|
else:
|
|
175
175
|
cols = tuple(columns)
|
|
176
176
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
spells/__init__.py,sha256=iyX74sLFJIQ_5ShZ7KDOeBlbYLm21ibWxwyzCGnKdg8,169
|
|
2
2
|
spells/cache.py,sha256=YpTmlW-U2EosvGCH9gRQdQc8gRjjcGbgQovn5gfA_WE,3165
|
|
3
3
|
spells/cards.py,sha256=EOXAB_F2yedjf6KquCERCIHl0TSIJIoOe1jv8g4JzOc,3601
|
|
4
|
-
spells/columns.py,sha256=
|
|
5
|
-
spells/draft_data.py,sha256=
|
|
4
|
+
spells/columns.py,sha256=SdNw51lA1ox5rD2M7F8M2yqo-m0Dal5sKzS4Rp4q9MQ,18092
|
|
5
|
+
spells/draft_data.py,sha256=2wi5u6iSAyvWZy658AVeqQLLmZ7X21VG-QnNeO02of8,17641
|
|
6
6
|
spells/enums.py,sha256=DL7e1xDEvrsTMbA7vJB_Et1DaYkyO4rIEzvIQDz3MZk,4871
|
|
7
7
|
spells/extension.py,sha256=RFLnNdT_4fIibgw_lAsAjQsFzWmNjJp8KRXJvagdz3Y,6580
|
|
8
8
|
spells/external.py,sha256=PN0PkwdKnvx-4HkApFhI1_ZwRvBUDMUd3Vfbky0xSJA,11786
|
|
9
9
|
spells/filter.py,sha256=J-YTOOAzOQpvIX29tviYL04RVoOUlfsbjBXoQBDCEdQ,3380
|
|
10
|
-
spells/manifest.py,sha256=
|
|
10
|
+
spells/manifest.py,sha256=dOUmj2uZZ17vCWpFwv7B5F6wOIWnoQdZkEB9SDKdx9M,8310
|
|
11
11
|
spells/schema.py,sha256=DbMvV8PIThJTp0Xzp_XIorlW6JhE1ud1kWRGf5SQ4_c,6406
|
|
12
|
-
spells_mtg-0.7.
|
|
13
|
-
spells_mtg-0.7.
|
|
14
|
-
spells_mtg-0.7.
|
|
15
|
-
spells_mtg-0.7.
|
|
16
|
-
spells_mtg-0.7.
|
|
12
|
+
spells_mtg-0.7.5.dist-info/METADATA,sha256=aOdLLR4bAzd7jPcStcuooaRU3l2jDUK0CvsZqZ-bSco,46731
|
|
13
|
+
spells_mtg-0.7.5.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
14
|
+
spells_mtg-0.7.5.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
|
|
15
|
+
spells_mtg-0.7.5.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
|
|
16
|
+
spells_mtg-0.7.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|