-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.py
88 lines (78 loc) · 1.67 KB
/
data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
"""
User data for the next run.
Edit this file directly.
Since you should use this script once a year, it's not a big deal.
"""
"""Write the year you wish to create. Use 2024 for 2024-2025."""
year = 2024
"""Write a valid week number to edit files after this week."""
start_week = None
"""Period numbers, should be 1, 2, 3, 4, 5 in most case."""
list_periods = range(1, 6)
"""End of each period. Use the first day of the week."""
dict_period_ends = {
0: "30/08/2024", # prerentrée
1: "04/11/2024", # rentrée vacances Toussaint
2: "06/01/2025", # rentrée vacances Noël
3: "24/02/2025", # rentrée vacances d'hiver
4: "22/04/2025", # rentrée vacances Printemps
5: "05/07/2025", # fin d'année scolaire
}
# Clear the content
content_per_day = {}
# lundi
content_per_day[
0
] = """
"""
# mardi
content_per_day[
1
] = """
- 6h40-7h14 - gare - train
- 8h-9h50 - 213 - tale NSI
- 10h00-10h55 - 213 - tmg2-1
- 11h15-11h47 - gare - train
"""
# mercredi
content_per_day[
2
] = """
- 6h40-7h14 - gare - train
- 8h-8h55 - 213 - tale NSI-1
- 8h55-9h50 - 213 - tale NSI-2
- 10h00-11h50 - 213 - 1ere NSI
- 12h15-12h47 - gare - train
"""
# jeudi
content_per_day[
3
] = """
- 8h40-9h14 - gare - train
- 10h-11h50 - 213 - TMG2
- 12h45-13h40 - 213 - tale NSI
- 13h40-15h40 - 213 - tale NSI-1
- 15h40-17h30 - 213 - tale NSI-2
- 17h46-18h20 - gare -train
"""
# vendredi
content_per_day[
4
] = """
- 7h40-8h14 - gare - train
- 8h55-9h50 - 213 - tmg2-2
- 11h50-12h45 - 213 - tg9 AP Q2
- 13h40-15h30 - 213 - 1ere NSI 1
- 15h40-17h30 - 213 - 1ere NSI 2
- 17h46-18h20 - gare -train
"""
# samedi
content_per_day[
5
] = """
"""
# dimanche
content_per_day[
6
] = """
"""