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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archivo.py b/archivo.py
index 2bc62ba..9d89e81 100644
--- a/archivo.py
+++ b/archivo.py
@@ -28,6 +28,12 @@ def crear_modelo():
modelo.append([1, 'Hola Mundo'])
return modelo
+def abrir_efemeride():
+ '''open the ephemeris file and return a dictionary'''
+ archivo = open('files/efemerides.pkl', 'rb')
+ texto = pickle.load(archivo)
+ return texto
+
def guardar_dato(indice, contenido, archivo):
'''get a id dependig of the unix time, and the content'''
indice = str(indice)