diff options
author | yaderv <yajosev@gmail.com> | 2011-02-22 17:54:00 (GMT) |
---|---|---|
committer | yaderv <yajosev@gmail.com> | 2011-02-22 17:54:00 (GMT) |
commit | d19d1d2107a8e100514de2dcbf127c73085e28d1 (patch) | |
tree | 7fa9cf575f53448543ed925ba4171402917e39e1 /archivo.py | |
parent | ee557d573ec1884ee38b100d682cf3c370f32519 (diff) |
unmark option
Diffstat (limited to 'archivo.py')
-rw-r--r-- | archivo.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -119,6 +119,7 @@ def guardar_dato(indice, contenido, categoria, bolean, path): pickle.dump(dia, f) f.close() + def borrar_dato(indice, indice_lista, path): '''delete the selected content''' path = path + '/data/actividades.pkl' @@ -131,6 +132,11 @@ def borrar_dato(indice, indice_lista, path): f.seek(0) pickle.dump(dia, f) f.close() + + if len(dia[indice]): #return 1 if the date does not have data + return 0 + else: + return 1 def dict_meses(path, fecha=None): '''Create if not exists and return a data |