-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExoSelect.py
More file actions
191 lines (154 loc) · 9.56 KB
/
ExoSelect.py
File metadata and controls
191 lines (154 loc) · 9.56 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
display_abs = False
display_pecs = False
display_biceps = False
ext_obliques = False
ext_obliques = False
trapèze = False
muscle_dentele = False
deltoïdes = False
Brachial = False
Biceps_Brachial = False
muscle_des_avants_bras = False
Triceps = False
Trapèze = False
Abdos = False
Fessier = False
Grand_pectoral = False
Lombaires = False
Pectoraux = False
Biceps = False
Cuisse = False
Grand_dorsal = False
mollets = False
abducteurs = False
Quadriceps = False
Ischio_jambiers = False
Triceps_Sural = False
Biceps_fémoral = False
Quadriceps_droit_de_la_cuisse = False
aucun = True # sans materiel
EnSalle = True
MaterielleAchetable = True
def get_exo():
listexo = []
f = open("Projet_NSI.txt", "r")
data = f.read()
data_sep = str(data).split('\n')
for x in range(len(str(data).split('\n'))):
exo = str(data_sep[x]).split(';')
if 'Deltoïde' in str(data_sep[x]) and deltoïdes:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Biceps' in str(data_sep[x]) and display_biceps:
exo = str(data_sep[x]).split(';')
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Brachial' in str(data_sep[x]) and Brachial:
exo = str(data_sep[x]).split(';')
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Biceps_Brachial' in str(data_sep[x]) and Biceps_Brachial:
exo = str(data_sep[x]).split(';')
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'muscle_des_avants_bras' in str(data_sep[x]) and muscle_des_avants_bras:
exo = str(data_sep[x]).split(';')
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Triceps' in str(data_sep[x]) and Triceps:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Trapèze' in str(data_sep[x]) and Trapèze:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Abdos' in str(data_sep[x]) and Abdos:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Fessier' in str(data_sep[x]) and Fessier:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Grand pectoral' in str(data_sep[x]) and Grand_pectoral:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Lombaires' in str(data_sep[x]) and Lombaires:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Pectoraux' in str(data_sep[x]) and Pectoraux:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Biceps' in str(data_sep[x]) and Biceps:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Cuisse' in str(data_sep[x]) and Cuisse:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Grand dorsal' in str(data_sep[x]) and Grand_dorsal:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'mollets' in str(data_sep[x]) and mollets:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'abducteurs' in str(data_sep[x]) and abducteurs:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Quadriceps' in str(data_sep[x]) and Quadriceps:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Ischio jambiers' in str(data_sep[x]) and Ischio_jambiers:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Triceps Sural' in str(data_sep[x]) and Triceps_Sural:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Biceps fémoral' in str(data_sep[x]) and Biceps_fémoral:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
if 'Quadriceps droit de la cuisse' in str(data_sep[x]) and Quadriceps_droit_de_la_cuisse:
if "Pas de matériel" in str(exo[5]) and aucun or "Matérielle achetable" in str(exo[5]) and MaterielleAchetable or "A faire en salle" in str(exo[5]) and EnSalle:
if str(exo[1]) not in str(listexo):
exm=(exo[1],exo[3])
listexo.append(exm)
return listexo
print(get_exo())