Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/archivo.py
diff options
context:
space:
mode:
Diffstat (limited to 'archivo.py')
-rw-r--r--archivo.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/archivo.py b/archivo.py
index 75748cc..7cd4bc2 100644
--- a/archivo.py
+++ b/archivo.py
@@ -71,6 +71,23 @@ def crear_modelo(indice, path):
archivo.close()
return modelo
+
+def tareas_pendientes(path):
+ '''Save/Update a file with the pending task,
+ activities marked as in progress'''
+ lista_temporal = list()
+ path_actividades = path + '/data/actividades.pkl'
+ if os.path.exists(path_actividades):
+ archivo = open(path_actividades, 'r')
+ dia = pickle.load(archivo)
+ _log.debug(dia)
+ for fechas_datos in dia:
+ for datos in dia[fechas_datos]:
+ if datos[3] is not None:
+ lista_temporal.append(datos[0])
+ _log.debug(lista_temporal)
+
+
def comprobar_archivo(path, archivo):
'''Return true if the ephemeris database exists,
else return false'''