Skip to content

Commit 1dcd628

Browse files
committed
fix game times, add DFT
1 parent 95e6783 commit 1dcd628

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

spells/columns.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -217,21 +217,21 @@ class ColDef:
217217
),
218218
ColName.GAME_DATE: ColSpec(
219219
col_type=ColType.GROUP_BY,
220-
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H-%M-%S").dt.date(),
220+
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H:%M:%S").dt.date(),
221221
),
222222
ColName.GAME_DAY_OF_WEEK: ColSpec(
223223
col_type=ColType.GROUP_BY,
224224
expr=pl.col(ColName.GAME_TIME)
225-
.str.to_datetime("%Y-%m-%d %H-%M-%S")
225+
.str.to_datetime("%Y-%m-%d %H:%M:%S")
226226
.dt.weekday(),
227227
),
228228
ColName.GAME_HOUR: ColSpec(
229229
col_type=ColType.GROUP_BY,
230-
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H-%M-%S").dt.hour(),
230+
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H:%M:%S").dt.hour(),
231231
),
232232
ColName.GAME_WEEK: ColSpec(
233233
col_type=ColType.GROUP_BY,
234-
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H-%M-%S").dt.week(),
234+
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H:%M:%S").dt.week(),
235235
),
236236
ColName.BUILD_INDEX: ColSpec(
237237
col_type=ColType.GROUP_BY,

spells/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
all_sets = [
2+
"DFT",
23
"PIO",
34
"FDN",
45
"DSK",

0 commit comments

Comments
 (0)