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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archivo.py b/archivo.py
index 39ccf8e..878514e 100644
--- a/archivo.py
+++ b/archivo.py
@@ -49,7 +49,10 @@ def guardar_dato(indice, contenido):
indice = str(indice)
f = open('files/actividades.pkl', 'rb+wb')
dia = pickle.load(f)
+ if dia.has_key(indice) is False:
+ dia[indice] = []
dia[indice].append(contenido)
+ f.seek(0)
pickle.dump(dia, f)
#f.flush()
f.close()