Gamaliel Espinoza hace 8 años
padre
commit
2dbc019528
Se han modificado 2 ficheros con 7 adiciones y 6 borrados
  1. 1 1
      tools/fourier/__init__.py
  2. 6 5
      tools/fourier/cli.py

+ 1 - 1
tools/fourier/__init__.py

@@ -1 +1 @@
-__version__ = '1.0.11'
+__version__ = '1.0.12'

+ 6 - 5
tools/fourier/cli.py

@@ -276,14 +276,15 @@ def main():
             cursor.execute(query)
 
             for row in cursor:
-                fn = os.path.basename(row['filename'])
-                ts = datetime.fromtimestamp(row['timestamp'])
+                the_hash, filename, timestamp = row
+                fn = os.path.basename(filename)
+                ts = datetime.fromtimestamp(timestamp)
                 fl = datetime.strptime(fn[:19], '%Y-%m-%dT%H-%M-%S')
 
                 if fl != ts:
-                    print('{}\t{}\t{}'.format(row['hash'],
-                                              row['timestamp'],
-                                              row['filename']
+                    print('{}\t{}\t{}'.format(the_hash,
+                                              timestamp,
+                                              filename
                                               ))
 
     elif args.entity == 'station':