Update functions.py
Browse files- functions.py +4 -4
functions.py
CHANGED
|
@@ -6,10 +6,10 @@ import matplotlib.pyplot as plt
|
|
| 6 |
|
| 7 |
# Funci贸n para cargar modalidades y tareas desde un archivo JSON
|
| 8 |
def cargar_modalidades_tareas():
|
| 9 |
-
try:
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
#except FileNotFoundError:
|
| 14 |
# raise ValueError("El archivo 'modalidades_tareas.json' no se encontr贸. Aseg煤rate de que existe en el directorio correcto.") <button class="citation-flag" data-index="9">
|
| 15 |
#except json.JSONDecodeError:
|
|
|
|
| 6 |
|
| 7 |
# Funci贸n para cargar modalidades y tareas desde un archivo JSON
|
| 8 |
def cargar_modalidades_tareas():
|
| 9 |
+
#try:
|
| 10 |
+
with open("modalidades_tareas.json", "r") as file:
|
| 11 |
+
MODALIDAD_TAREAS = json.load(file)
|
| 12 |
+
return MODALIDAD_TAREAS
|
| 13 |
#except FileNotFoundError:
|
| 14 |
# raise ValueError("El archivo 'modalidades_tareas.json' no se encontr贸. Aseg煤rate de que existe en el directorio correcto.") <button class="citation-flag" data-index="9">
|
| 15 |
#except json.JSONDecodeError:
|