File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "week " : {
2
+ "weekDays " : {
3
3
"Monday" : true ,
4
4
"Tuesday" : true ,
5
5
"Wednesday" : true ,
Original file line number Diff line number Diff line change 2
2
from typing import TypedDict
3
3
4
4
5
- class ConfigWeek (TypedDict ):
5
+ class ConfigWeekDays (TypedDict ):
6
6
Monday : bool
7
7
Tuesday : bool
8
8
Wednesday : bool
@@ -12,7 +12,7 @@ class ConfigWeek(TypedDict):
12
12
Sunday : bool
13
13
14
14
class Config (TypedDict ):
15
- week : ConfigWeek
15
+ weekDays : ConfigWeekDays
16
16
17
17
18
18
with open ("config.json" , "r" ) as file :
Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ def get_expected_time(recap: Recap):
22
22
return sum ([
23
23
recap .get_expected ()
24
24
for date in date_range
25
- if config ['week ' ][date .strftime ('%A' )]
25
+ if config ['weekDays ' ][date .strftime ('%A' )]
26
26
and date < datetime .today ().date ()
27
27
])
You can’t perform that action at this time.
0 commit comments